ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpeqs_o7xx executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_selinux_disabled.yml ******************************************* 1 plays in /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:1 Thursday 07 July 2022 21:13:41 +0000 (0:00:00.013) 0:00:00.013 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Ensure SELinux tool semanage] ******************************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:16 Thursday 07 July 2022 21:13:42 +0000 (0:00:01.019) 0:00:01.032 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Add a Linux System Roles SELinux User] *********************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:25 Thursday 07 July 2022 21:13:42 +0000 (0:00:00.032) 0:00:01.065 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "comment": "Linux System Roles SELinux User", "create_home": true, "group": 501, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 501 } STDERR: useradd: warning: the home directory already exists. Not copying any file from skel directory into it. Creating mailbox file: File exists TASK [Add some mapping] ******************************************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:29 Thursday 07 July 2022 21:13:42 +0000 (0:00:00.527) 0:00:01.592 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail\necho -e -n \"boolean -m --on samba_enable_home_dirs\nport -a -p tcp -t ssh_port_t 22100\nfcontext -a -t user_home_dir_t /tmp/test_dir\nlogin -a -s staff_u sar-user\n\" | /usr/sbin/semanage -i -", "delta": "0:00:24.365250", "end": "2022-07-07 17:14:07.508416", "rc": 0, "start": "2022-07-07 17:13:43.143166" } TASK [Backup original /etc/selinux/config] ************************************* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:34 Thursday 07 July 2022 21:14:07 +0000 (0:00:24.782) 0:00:26.374 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "cab88436a995588a974c0bd5edd544fd419eab43", "dest": "/etc/selinux/config.test_selinux_disabled", "gid": 0, "group": "root", "md5sum": "91081ef6d958e79795d0255d7c374a56", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 458, "src": "/etc/selinux/config", "state": "file", "uid": 0 } TASK [Upload testing /etc/selinux/config] ************************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:40 Thursday 07 July 2022 21:14:07 +0000 (0:00:00.499) 0:00:26.874 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "385caf4e178c9a1dfcdaac71738934c735201480", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "293160d55f3a26d5bc687154d028eb47", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 547, "src": "/root/.ansible/tmp/ansible-tmp-1657228448.0305357-238450-226410195703056/source", "state": "file", "uid": 0 } TASK [Switch to permissive to allow login when selinuxfs is not mounted] ******* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:45 Thursday 07 July 2022 21:14:08 +0000 (0:00:00.665) 0:00:27.539 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "setenforce", "0" ], "delta": "0:00:00.003849", "end": "2022-07-07 17:14:09.009462", "rc": 0, "start": "2022-07-07 17:14:09.005613" } TASK [Get selinuxfs mountpoint] ************************************************ task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:49 Thursday 07 July 2022 21:14:08 +0000 (0:00:00.274) 0:00:27.814 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": "findmnt -n -t selinuxfs --output=target", "delta": "0:00:00.004144", "end": "2022-07-07 17:14:09.294124", "rc": 0, "start": "2022-07-07 17:14:09.289980" } STDOUT: /selinux TASK [Umount /selinux to emulate SELinux disabled system # noqa 303] ********** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:53 Thursday 07 July 2022 21:14:09 +0000 (0:00:00.290) 0:00:28.104 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "umount", "-l", "/selinux" ], "delta": "0:00:00.030506", "end": "2022-07-07 17:14:09.598132", "rc": 0, "start": "2022-07-07 17:14:09.567626" } TASK [include_role : linux-system-roles.selinux] ******************************* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:60 Thursday 07 July 2022 21:14:09 +0000 (0:00:00.301) 0:00:28.405 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean redirecting (type: modules) ansible.builtin.sefcontext to community.general.sefcontext redirecting (type: modules) community.general.sefcontext to community.general.system.sefcontext redirecting (type: modules) ansible.builtin.seport to community.general.seport redirecting (type: modules) community.general.seport to community.general.system.seport redirecting (type: modules) ansible.builtin.selogin to community.general.selogin redirecting (type: modules) community.general.selogin to community.general.system.selogin TASK [linux-system-roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:2 Thursday 07 July 2022 21:14:09 +0000 (0:00:00.096) 0:00:28.502 ********* included: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml for /cache/rhel-6.qcow2.snap TASK [linux-system-roles.selinux : Ensure ansible_facts used by role] ********** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:2 Thursday 07 July 2022 21:14:09 +0000 (0:00:00.035) 0:00:28.537 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Install SELinux python2 tools] ************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:8 Thursday 07 July 2022 21:14:09 +0000 (0:00:00.038) 0:00:28.575 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed" ] } TASK [linux-system-roles.selinux : Install SELinux python3 tools] ************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:16 Thursday 07 July 2022 21:14:10 +0000 (0:00:00.693) 0:00:29.269 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : refresh facts] ****************************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:24 Thursday 07 July 2022 21:14:10 +0000 (0:00:00.026) 0:00:29.295 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [linux-system-roles.selinux : Install SELinux tool semanage] ************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:29 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.695) 0:00:29.990 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Set permanent SELinux state if enabled] ***** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:5 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.034) 0:00:30.025 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Set permanent SELinux state if disabled] **** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:13 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.021) 0:00:30.046 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "configfile": "/etc/selinux/config", "policy": "targeted", "reboot_required": true, "state": "enforcing" } MSG: Config SELinux state changed from 'disabled' to 'enforcing' TASK [linux-system-roles.selinux : Set selinux_reboot_required] **************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:20 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.589) 0:00:30.635 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "selinux_reboot_required": true }, "changed": false } TASK [linux-system-roles.selinux : Fail if reboot is required] ***************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:26 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.049) 0:00:30.685 ********* fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: Reboot is required to apply changes. Re-execute the role after boot. TASK [examine the selinux_reboot_required variable] **************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:63 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.036) 0:00:30.721 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "test_selinux_reboot_required": true }, "changed": false } TASK [check that the role has failed and set the correct variable] ************* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:67 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.036) 0:00:30.758 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Mount /selinux back to system] ******************************************* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:72 Thursday 07 July 2022 21:14:11 +0000 (0:00:00.034) 0:00:30.793 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "mount", "-t", "selinuxfs", "selinuxfs", "/selinux" ], "delta": "0:00:00.013859", "end": "2022-07-07 17:14:12.271560", "rc": 0, "start": "2022-07-07 17:14:12.257701" } TASK [Switch back to enforcing] ************************************************ task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:76 Thursday 07 July 2022 21:14:12 +0000 (0:00:00.309) 0:00:31.102 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "setenforce", "1" ], "delta": "0:00:00.032913", "end": "2022-07-07 17:14:12.590545", "rc": 0, "start": "2022-07-07 17:14:12.557632" } TASK [Gather facts again] ****************************************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:79 Thursday 07 July 2022 21:14:12 +0000 (0:00:00.331) 0:00:31.434 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [Check SELinux config mode] *********************************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:81 Thursday 07 July 2022 21:14:13 +0000 (0:00:00.750) 0:00:32.184 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore original /etc/selinux/config] ************************************ task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:90 Thursday 07 July 2022 21:14:13 +0000 (0:00:00.035) 0:00:32.219 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "cab88436a995588a974c0bd5edd544fd419eab43", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "91081ef6d958e79795d0255d7c374a56", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 458, "src": "/etc/selinux/config.test_selinux_disabled", "state": "file", "uid": 0 } TASK [Remove /etc/selinux/config backup] *************************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:97 Thursday 07 July 2022 21:14:13 +0000 (0:00:00.328) 0:00:32.547 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "path": "/etc/selinux/config.test_selinux_disabled", "state": "absent" } TASK [Remove Linux System Roles SELinux User] ********************************** task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:102 Thursday 07 July 2022 21:14:14 +0000 (0:00:00.406) 0:00:32.953 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "force": false, "name": "sar-user", "remove": true, "state": "absent" } TASK [include_role : linux-system-roles.selinux] ******************************* task path: /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:108 Thursday 07 July 2022 21:14:14 +0000 (0:00:00.426) 0:00:33.380 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean redirecting (type: modules) ansible.builtin.sefcontext to community.general.sefcontext redirecting (type: modules) community.general.sefcontext to community.general.system.sefcontext redirecting (type: modules) ansible.builtin.seport to community.general.seport redirecting (type: modules) community.general.seport to community.general.system.seport redirecting (type: modules) ansible.builtin.selogin to community.general.selogin redirecting (type: modules) community.general.selogin to community.general.system.selogin TASK [linux-system-roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:2 Thursday 07 July 2022 21:14:14 +0000 (0:00:00.042) 0:00:33.422 ********* included: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml for /cache/rhel-6.qcow2.snap TASK [linux-system-roles.selinux : Ensure ansible_facts used by role] ********** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:2 Thursday 07 July 2022 21:14:14 +0000 (0:00:00.034) 0:00:33.457 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Install SELinux python2 tools] ************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:8 Thursday 07 July 2022 21:14:14 +0000 (0:00:00.035) 0:00:33.492 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed" ] } TASK [linux-system-roles.selinux : Install SELinux python3 tools] ************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:16 Thursday 07 July 2022 21:14:15 +0000 (0:00:00.528) 0:00:34.020 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : refresh facts] ****************************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:24 Thursday 07 July 2022 21:14:15 +0000 (0:00:00.025) 0:00:34.046 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [linux-system-roles.selinux : Install SELinux tool semanage] ************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:29 Thursday 07 July 2022 21:14:15 +0000 (0:00:00.720) 0:00:34.767 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Set permanent SELinux state if enabled] ***** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:5 Thursday 07 July 2022 21:14:15 +0000 (0:00:00.035) 0:00:34.802 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "configfile": "/etc/selinux/config", "policy": "targeted", "reboot_required": false, "state": "enforcing" } TASK [linux-system-roles.selinux : Set permanent SELinux state if disabled] **** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:13 Thursday 07 July 2022 21:14:16 +0000 (0:00:00.366) 0:00:35.169 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Set selinux_reboot_required] **************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:20 Thursday 07 July 2022 21:14:16 +0000 (0:00:00.022) 0:00:35.191 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "selinux_reboot_required": false }, "changed": false } TASK [linux-system-roles.selinux : Fail if reboot is required] ***************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:26 Thursday 07 July 2022 21:14:16 +0000 (0:00:00.075) 0:00:35.267 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Warn if SELinux is disabled] **************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:31 Thursday 07 July 2022 21:14:16 +0000 (0:00:00.022) 0:00:35.289 ********* skipping: [/cache/rhel-6.qcow2.snap] => {} TASK [linux-system-roles.selinux : Drop all local modifications] *************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:36 Thursday 07 July 2022 21:14:16 +0000 (0:00:00.022) 0:00:35.311 ********* NOTIFIED HANDLER linux-system-roles.selinux : Reload SELinux policy for /cache/rhel-6.qcow2.snap NOTIFIED HANDLER linux-system-roles.selinux : Reload SELinux policy for /cache/rhel-6.qcow2.snap changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "-i", "-" ], "delta": "0:00:23.925725", "end": "2022-07-07 17:14:40.711893", "rc": 0, "start": "2022-07-07 17:14:16.786168" } TASK [linux-system-roles.selinux : Purge all SELinux boolean local modifications] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:43 Thursday 07 July 2022 21:14:40 +0000 (0:00:24.257) 0:00:59.569 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:47 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.035) 0:00:59.604 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Purge all SELinux port local modifications] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:51 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.032) 0:00:59.637 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Purge all SELinux login local modifications] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:55 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.031) 0:00:59.668 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.selinux : Set SELinux booleans] *********************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:59 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.031) 0:00:59.700 ********* TASK [linux-system-roles.selinux : Set SELinux file contexts] ****************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:66 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.019) 0:00:59.719 ********* TASK [linux-system-roles.selinux : Restore SELinux labels on filesystem tree] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:75 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.019) 0:00:59.739 ********* TASK [linux-system-roles.selinux : Restore SELinux labels on filesystem tree in check mode] *** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:81 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.017) 0:00:59.757 ********* TASK [linux-system-roles.selinux : Set an SELinux label on a port] ************* task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:89 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.017) 0:00:59.775 ********* TASK [linux-system-roles.selinux : Set linux user to SELinux user mapping] ***** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:97 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.017) 0:00:59.793 ********* TASK [linux-system-roles.selinux : Get SELinux modules facts] ****************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:107 Thursday 07 July 2022 21:14:40 +0000 (0:00:00.020) 0:00:59.813 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "selinux_installed_modules": { "abrt": { "0": "enabled" }, "accountsd": { "0": "enabled" }, "ada": { "0": "enabled" }, "afs": { "0": "enabled" }, "aiccu": { "0": "enabled" }, "aide": { "0": "enabled" }, "amanda": { "0": "enabled" }, "amtu": { "0": "enabled" }, "antivirus": { "0": "enabled" }, "apache": { "0": "enabled" }, "apcupsd": { "0": "enabled" }, "arpwatch": { "0": "enabled" }, "asterisk": { "0": "enabled" }, "audioentropy": { "0": "enabled" }, "automount": { "0": "enabled" }, "avahi": { "0": "enabled" }, "awstats": { "0": "enabled" }, "bacula": { "0": "enabled" }, "bcfg2": { "0": "enabled" }, "bind": { "0": "enabled" }, "bitlbee": { "0": "enabled" }, "bluetooth": { "0": "enabled" }, "boinc": { "0": "enabled" }, "bugzilla": { "0": "enabled" }, "cachefilesd": { "0": "enabled" }, "calamaris": { "0": "enabled" }, "canna": { "0": "enabled" }, "ccs": { "0": "enabled" }, "cdrecord": { "0": "enabled" }, "certmaster": { "0": "enabled" }, "certmonger": { "0": "enabled" }, "certwatch": { "0": "enabled" }, "cfengine": { "0": "enabled" }, "cgroup": { "0": "enabled" }, "chrome": { "0": "enabled" }, "chronyd": { "0": "enabled" }, "cinder": { "0": "enabled" }, "cipe": { "0": "enabled" }, "clogd": { "0": "enabled" }, "cloudform": { "0": "enabled" }, "cmirrord": { "0": "enabled" }, "cobbler": { "0": "enabled" }, "collectd": { "0": "enabled" }, "comsat": { "0": "enabled" }, "condor": { "0": "enabled" }, "conman": { "0": "enabled" }, "consolekit": { "0": "enabled" }, "courier": { "0": "enabled" }, "cpufreqselector": { "0": "enabled" }, "ctdbd": { "0": "enabled" }, "cups": { "0": "enabled" }, "cvs": { "0": "enabled" }, "cyphesis": { "0": "enabled" }, "cyrus": { "0": "enabled" }, "daemontools": { "0": "enabled" }, "dbskk": { "0": "enabled" }, "dcc": { "0": "enabled" }, "ddclient": { "0": "enabled" }, "denyhosts": { "0": "enabled" }, "devicekit": { "0": "enabled" }, "dhcp": { "0": "enabled" }, "dictd": { "0": "enabled" }, "dirsrv": { "0": "enabled" }, "dirsrv-admin": { "0": "enabled" }, "dnsmasq": { "0": "enabled" }, "dovecot": { "0": "enabled" }, "drbd": { "0": "enabled" }, "dspam": { "0": "enabled" }, "ethereal": { "0": "enabled" }, "execmem": { "0": "enabled" }, "exim": { "0": "enabled" }, "fail2ban": { "0": "enabled" }, "fcoemon": { "0": "enabled" }, "fetchmail": { "0": "enabled" }, "finger": { "0": "enabled" }, "firewallgui": { "0": "enabled" }, "fprintd": { "0": "enabled" }, "freeipmi": { "0": "enabled" }, "ftp": { "0": "enabled" }, "games": { "0": "enabled" }, "git": { "0": "enabled" }, "gitosis": { "0": "enabled" }, "glance": { "0": "enabled" }, "glusterd": { "0": "enabled" }, "gnome": { "0": "enabled" }, "gnomeclock": { "0": "enabled" }, "gpg": { "0": "enabled" }, "gpm": { "0": "enabled" }, "gpsd": { "0": "enabled" }, "guest": { "0": "enabled" }, "hal": { "0": "enabled" }, "hddtemp": { "0": "enabled" }, "howl": { "0": "enabled" }, "hypervkvp": { "0": "enabled" }, "icecast": { "0": "enabled" }, "inn": { "0": "enabled" }, "ipsec": { "0": "enabled" }, "irc": { "0": "enabled" }, "iscsi": { "0": "enabled" }, "isns": { "0": "enabled" }, "jabber": { "0": "enabled" }, "java": { "0": "enabled" }, "kdump": { "0": "enabled" }, "kdumpgui": { "0": "enabled" }, "keepalived": { "0": "enabled" }, "kerberos": { "0": "enabled" }, "kerneloops": { "0": "enabled" }, "keystone": { "0": "enabled" }, "kismet": { "0": "enabled" }, "ksmtuned": { "0": "enabled" }, "ktalk": { "0": "enabled" }, "l2tpd": { "0": "enabled" }, "ldap": { "0": "enabled" }, "likewise": { "0": "enabled" }, "linuxptp": { "0": "enabled" }, "lircd": { "0": "enabled" }, "livecd": { "0": "enabled" }, "lldpad": { "0": "enabled" }, "lockdev": { "0": "enabled" }, "logadm": { "0": "enabled" }, "lpd": { "0": "enabled" }, "lsm": { "0": "enabled" }, "mailman": { "0": "enabled" }, "matahari": { "0": "enabled" }, "mediawiki": { "0": "enabled" }, "memcached": { "0": "enabled" }, "milter": { "0": "enabled" }, "mip6d": { "0": "enabled" }, "mirrormanager": { "0": "enabled" }, "modemmanager": { "0": "enabled" }, "mono": { "0": "enabled" }, "mozilla": { "0": "enabled" }, "mpd": { "0": "enabled" }, "mplayer": { "0": "enabled" }, "mrtg": { "0": "enabled" }, "munin": { "0": "enabled" }, "mysql": { "0": "enabled" }, "nagios": { "0": "enabled" }, "namespace": { "0": "enabled" }, "ncftool": { "0": "enabled" }, "netlabel": { "0": "enabled" }, "nis": { "0": "enabled" }, "nova": { "0": "enabled" }, "nslcd": { "0": "enabled" }, "nsplugin": { "0": "enabled" }, "ntop": { "0": "enabled" }, "ntp": { "0": "enabled" }, "numad": { "0": "enabled" }, "nut": { "0": "enabled" }, "nx": { "0": "enabled" }, "oddjob": { "0": "enabled" }, "openct": { "0": "enabled" }, "openhpid": { "0": "enabled" }, "openoffice": { "0": "enabled" }, "openshift": { "0": "enabled" }, "openshift-origin": { "0": "enabled" }, "openvpn": { "0": "enabled" }, "openvswitch": { "0": "enabled" }, "openwsman": { "0": "enabled" }, "oracleasm": { "0": "enabled" }, "osad": { "0": "enabled" }, "pads": { "0": "enabled" }, "passenger": { "0": "enabled" }, "pcp": { "0": "enabled" }, "pcscd": { "0": "enabled" }, "pegasus": { "0": "enabled" }, "permissivedomains": { "0": "enabled" }, "pingd": { "0": "enabled" }, "piranha": { "0": "enabled" }, "pkcsslotd": { "0": "enabled" }, "plymouthd": { "0": "enabled" }, "podsleuth": { "0": "enabled" }, "policykit": { "0": "enabled" }, "portmap": { "0": "enabled" }, "portreserve": { "0": "enabled" }, "postfix": { "0": "enabled" }, "postgresql": { "0": "enabled" }, "postgrey": { "0": "enabled" }, "ppp": { "0": "enabled" }, "prelude": { "0": "enabled" }, "privoxy": { "0": "enabled" }, "procmail": { "0": "enabled" }, "psad": { "0": "enabled" }, "ptchown": { "0": "enabled" }, "publicfile": { "0": "enabled" }, "pulseaudio": { "0": "enabled" }, "puppet": { "0": "enabled" }, "pyzor": { "0": "enabled" }, "qemu": { "0": "enabled" }, "qmail": { "0": "enabled" }, "qpidd": { "0": "enabled" }, "quantum": { "0": "enabled" }, "radius": { "0": "enabled" }, "radvd": { "0": "enabled" }, "razor": { "0": "enabled" }, "rdisc": { "0": "enabled" }, "redis": { "0": "enabled" }, "remotelogin": { "0": "enabled" }, "rhcs": { "0": "enabled" }, "rhev": { "0": "enabled" }, "rhgb": { "0": "enabled" }, "rhnsd": { "0": "enabled" }, "rhsmcertd": { "0": "enabled" }, "ricci": { "0": "enabled" }, "rlogin": { "0": "enabled" }, "roundup": { "0": "enabled" }, "rpcbind": { "0": "enabled" }, "rshd": { "0": "enabled" }, "rssh": { "0": "enabled" }, "rsync": { "0": "enabled" }, "rtas": { "0": "enabled" }, "rtkit": { "0": "enabled" }, "rwho": { "0": "enabled" }, "samba": { "0": "enabled" }, "sambagui": { "0": "enabled" }, "sandbox": { "0": "enabled" }, "sanlock": { "0": "enabled" }, "sasl": { "0": "enabled" }, "sblim": { "0": "enabled" }, "screen": { "0": "enabled" }, "sectoolm": { "0": "enabled" }, "sensord": { "0": "enabled" }, "seunshare": { "0": "enabled" }, "sge": { "0": "enabled" }, "shutdown": { "0": "enabled" }, "slocate": { "0": "enabled" }, "slpd": { "0": "enabled" }, "smartmon": { "0": "enabled" }, "smokeping": { "0": "enabled" }, "smoltclient": { "0": "enabled" }, "smstools": { "0": "enabled" }, "snmp": { "0": "enabled" }, "snort": { "0": "enabled" }, "sosreport": { "0": "enabled" }, "soundserver": { "0": "enabled" }, "spamassassin": { "0": "enabled" }, "squid": { "0": "enabled" }, "sssd": { "0": "enabled" }, "staff": { "0": "enabled" }, "stapserver": { "0": "enabled" }, "stunnel": { "0": "enabled" }, "svnserve": { "0": "enabled" }, "swift": { "0": "enabled" }, "sysadm_secadm": { "0": "enabled" }, "sysstat": { "0": "enabled" }, "tcpd": { "0": "enabled" }, "telepathy": { "0": "enabled" }, "telnet": { "0": "enabled" }, "tftp": { "0": "enabled" }, "tgtd": { "0": "enabled" }, "tmpreaper": { "0": "enabled" }, "tomcat": { "0": "enabled" }, "tor": { "0": "enabled" }, "tuned": { "0": "enabled" }, "tvtime": { "0": "enabled" }, "ulogd": { "0": "enabled" }, "uml": { "0": "enabled" }, "unconfined": { "0": "enabled" }, "unconfineduser": { "0": "enabled" }, "unlabelednet": { "0": "enabled" }, "unprivuser": { "0": "enabled" }, "usbmodules": { "0": "enabled" }, "usbmuxd": { "0": "enabled" }, "userhelper": { "0": "enabled" }, "usernetctl": { "0": "enabled" }, "uucp": { "0": "enabled" }, "uuidd": { "0": "enabled" }, "varnishd": { "0": "enabled" }, "vdagent": { "0": "enabled" }, "vhostmd": { "0": "enabled" }, "virt": { "0": "enabled" }, "vmware": { "0": "enabled" }, "vpn": { "0": "enabled" }, "w3c": { "0": "enabled" }, "watchdog": { "0": "enabled" }, "wdmd": { "0": "enabled" }, "webadm": { "0": "enabled" }, "webalizer": { "0": "enabled" }, "wine": { "0": "enabled" }, "xen": { "0": "enabled" }, "xfs": { "0": "enabled" }, "xguest": { "0": "enabled" }, "zabbix": { "0": "enabled" }, "zarafa": { "0": "enabled" }, "zebra": { "0": "enabled" }, "zosremote": { "0": "enabled" } }, "selinux_priorities": false }, "changed": false } TASK [linux-system-roles.selinux : include_tasks] ****************************** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:110 Thursday 07 July 2022 21:14:42 +0000 (0:00:01.242) 0:01:01.055 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/rhel-6.qcow2.snap RUNNING HANDLER [linux-system-roles.selinux : Reload SELinux policy] *********** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/handlers/main.yml:1 Thursday 07 July 2022 21:14:42 +0000 (0:00:00.051) 0:01:01.107 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "semodule", "-R" ], "delta": "0:00:02.190110", "end": "2022-07-07 17:14:44.775390", "rc": 0, "start": "2022-07-07 17:14:42.585280" } RUNNING HANDLER [linux-system-roles.selinux : Reload SELinux policy] *********** task path: /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/handlers/main.yml:1 Thursday 07 July 2022 21:14:44 +0000 (0:00:02.515) 0:01:03.623 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "semodule", "-R" ], "delta": "0:00:02.236599", "end": "2022-07-07 17:14:47.409035", "rc": 0, "start": "2022-07-07 17:14:45.172436" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=31 changed=10 unreachable=0 failed=0 skipped=22 rescued=1 ignored=0 Thursday 07 July 2022 21:14:47 +0000 (0:00:02.648) 0:01:06.271 ********* =============================================================================== Add some mapping ------------------------------------------------------- 24.78s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:29 -------------------------- linux-system-roles.selinux : Drop all local modifications -------------- 24.26s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:36 ----- linux-system-roles.selinux : Reload SELinux policy ---------------------- 2.65s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/handlers/main.yml:1 --- linux-system-roles.selinux : Reload SELinux policy ---------------------- 2.52s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/handlers/main.yml:1 --- linux-system-roles.selinux : Get SELinux modules facts ------------------ 1.24s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:107 ---- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:1 --------------------------- Gather facts again ------------------------------------------------------ 0.75s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:79 -------------------------- linux-system-roles.selinux : refresh facts ------------------------------ 0.72s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:24 linux-system-roles.selinux : refresh facts ------------------------------ 0.70s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:24 linux-system-roles.selinux : Install SELinux python2 tools -------------- 0.69s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:8 Upload testing /etc/selinux/config -------------------------------------- 0.67s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:40 -------------------------- linux-system-roles.selinux : Set permanent SELinux state if disabled ---- 0.59s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:13 ----- linux-system-roles.selinux : Install SELinux python2 tools -------------- 0.53s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/set_facts_packages.yml:8 Add a Linux System Roles SELinux User ----------------------------------- 0.53s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:25 -------------------------- Backup original /etc/selinux/config ------------------------------------- 0.50s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:34 -------------------------- Remove Linux System Roles SELinux User ---------------------------------- 0.43s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:102 ------------------------- Remove /etc/selinux/config backup --------------------------------------- 0.41s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:97 -------------------------- linux-system-roles.selinux : Set permanent SELinux state if enabled ----- 0.37s /tmp/tmp4z99x4v3/tests/roles/linux-system-roles.selinux/tasks/main.yml:5 ------ Switch back to enforcing ------------------------------------------------ 0.33s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:76 -------------------------- Restore original /etc/selinux/config ------------------------------------ 0.33s /tmp/tmp4z99x4v3/tests/tests_selinux_disabled.yml:90 -------------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpeqs_o7xx executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_selinux_disabled.yml ******************************************* 1 plays in /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:1 Thursday 07 July 2022 21:34:07 +0000 (0:00:00.012) 0:00:00.012 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Ensure SELinux tool semanage] ******************************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:16 Thursday 07 July 2022 21:34:08 +0000 (0:00:01.033) 0:00:01.046 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Add a Linux System Roles SELinux User] *********************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:23 Thursday 07 July 2022 21:34:08 +0000 (0:00:00.035) 0:00:01.082 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "comment": "Linux System Roles SELinux User", "create_home": true, "group": 501, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 501 } STDERR: useradd: warning: the home directory already exists. Not copying any file from skel directory into it. Creating mailbox file: File exists TASK [Add some mapping] ******************************************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:27 Thursday 07 July 2022 21:34:09 +0000 (0:00:00.516) 0:00:01.598 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail\necho -e -n \"boolean -m --on samba_enable_home_dirs\nport -a -p tcp -t ssh_port_t 22100\nfcontext -a -t user_home_dir_t /tmp/test_dir\nlogin -a -s staff_u sar-user\n\" | /usr/sbin/semanage -i -", "delta": "0:00:23.548034", "end": "2022-07-07 17:34:32.138908", "rc": 0, "start": "2022-07-07 17:34:08.590874" } TASK [Backup original /etc/selinux/config] ************************************* task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:32 Thursday 07 July 2022 21:34:33 +0000 (0:00:23.946) 0:00:25.545 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "cab88436a995588a974c0bd5edd544fd419eab43", "dest": "/etc/selinux/config.test_selinux_disabled", "gid": 0, "group": "root", "md5sum": "91081ef6d958e79795d0255d7c374a56", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 458, "src": "/etc/selinux/config", "state": "file", "uid": 0 } TASK [Upload testing /etc/selinux/config] ************************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:38 Thursday 07 July 2022 21:34:33 +0000 (0:00:00.487) 0:00:26.032 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "385caf4e178c9a1dfcdaac71738934c735201480", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "293160d55f3a26d5bc687154d028eb47", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 547, "src": "/root/.ansible/tmp/ansible-tmp-1657229673.7140605-247221-224902153877626/source", "state": "file", "uid": 0 } TASK [Switch to permissive to allow login when selinuxfs is not mounted] ******* task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:43 Thursday 07 July 2022 21:34:34 +0000 (0:00:00.663) 0:00:26.696 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "setenforce", "0" ], "delta": "0:00:00.004032", "end": "2022-07-07 17:34:33.594226", "rc": 0, "start": "2022-07-07 17:34:33.590194" } TASK [Get selinuxfs mountpoint] ************************************************ task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:47 Thursday 07 July 2022 21:34:34 +0000 (0:00:00.258) 0:00:26.954 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": "findmnt -n -t selinuxfs --output=target", "delta": "0:00:00.004187", "end": "2022-07-07 17:34:33.849225", "rc": 0, "start": "2022-07-07 17:34:33.845038" } STDOUT: /selinux TASK [Umount /selinux to emulate SELinux disabled system # noqa 303] ********** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:51 Thursday 07 July 2022 21:34:34 +0000 (0:00:00.258) 0:00:27.212 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "umount", "-l", "/selinux" ], "delta": "0:00:00.026257", "end": "2022-07-07 17:34:34.130604", "rc": 0, "start": "2022-07-07 17:34:34.104347" } TASK [include_role : fedora.linux_system_roles.selinux] ************************ task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:57 Thursday 07 July 2022 21:34:35 +0000 (0:00:00.289) 0:00:27.502 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean redirecting (type: modules) ansible.builtin.sefcontext to community.general.sefcontext redirecting (type: modules) community.general.sefcontext to community.general.system.sefcontext redirecting (type: modules) ansible.builtin.seport to community.general.seport redirecting (type: modules) community.general.seport to community.general.system.seport redirecting (type: modules) ansible.builtin.selogin to community.general.selogin redirecting (type: modules) community.general.selogin to community.general.system.selogin TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Thursday 07 July 2022 21:34:35 +0000 (0:00:00.093) 0:00:27.595 ********* included: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for /cache/rhel-6.qcow2.snap TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Thursday 07 July 2022 21:34:35 +0000 (0:00:00.035) 0:00:27.631 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Thursday 07 July 2022 21:34:35 +0000 (0:00:00.033) 0:00:27.664 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed" ] } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:15 Thursday 07 July 2022 21:34:35 +0000 (0:00:00.685) 0:00:28.350 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : refresh facts] *********************** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:23 Thursday 07 July 2022 21:34:36 +0000 (0:00:00.026) 0:00:28.376 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:28 Thursday 07 July 2022 21:34:36 +0000 (0:00:00.676) 0:00:29.053 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Thursday 07 July 2022 21:34:36 +0000 (0:00:00.034) 0:00:29.087 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:12 Thursday 07 July 2022 21:34:36 +0000 (0:00:00.020) 0:00:29.108 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "configfile": "/etc/selinux/config", "policy": "targeted", "reboot_required": true, "state": "enforcing" } MSG: Config SELinux state changed from 'disabled' to 'enforcing' TASK [fedora.linux_system_roles.selinux : Set selinux_reboot_required] ********* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:19 Thursday 07 July 2022 21:34:37 +0000 (0:00:00.581) 0:00:29.690 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "selinux_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.selinux : Fail if reboot is required] ********** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:23 Thursday 07 July 2022 21:34:37 +0000 (0:00:00.046) 0:00:29.737 ********* fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: Reboot is required to apply changes. Re-execute the role after boot. TASK [examine the selinux_reboot_required variable] **************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:60 Thursday 07 July 2022 21:34:37 +0000 (0:00:00.033) 0:00:29.770 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "test_selinux_reboot_required": true }, "changed": false } TASK [check that the role has failed and set the correct variable] ************* task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:64 Thursday 07 July 2022 21:34:37 +0000 (0:00:00.029) 0:00:29.800 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Mount /selinux back to system] ******************************************* task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:68 Thursday 07 July 2022 21:34:37 +0000 (0:00:00.032) 0:00:29.832 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "mount", "-t", "selinuxfs", "selinuxfs", "/selinux" ], "delta": "0:00:00.011873", "end": "2022-07-07 17:34:36.747536", "rc": 0, "start": "2022-07-07 17:34:36.735663" } TASK [Switch back to enforcing] ************************************************ task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:72 Thursday 07 July 2022 21:34:37 +0000 (0:00:00.299) 0:00:30.131 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "setenforce", "1" ], "delta": "0:00:00.027758", "end": "2022-07-07 17:34:37.055290", "rc": 0, "start": "2022-07-07 17:34:37.027532" } TASK [Gather facts again] ****************************************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:75 Thursday 07 July 2022 21:34:38 +0000 (0:00:00.321) 0:00:30.453 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [Check SELinux config mode] *********************************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:77 Thursday 07 July 2022 21:34:38 +0000 (0:00:00.722) 0:00:31.175 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore original /etc/selinux/config] ************************************ task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:85 Thursday 07 July 2022 21:34:38 +0000 (0:00:00.031) 0:00:31.206 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "cab88436a995588a974c0bd5edd544fd419eab43", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "91081ef6d958e79795d0255d7c374a56", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 458, "src": "/etc/selinux/config.test_selinux_disabled", "state": "file", "uid": 0 } TASK [Remove /etc/selinux/config backup] *************************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:92 Thursday 07 July 2022 21:34:39 +0000 (0:00:00.313) 0:00:31.520 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "path": "/etc/selinux/config.test_selinux_disabled", "state": "absent" } TASK [Remove Linux System Roles SELinux User] ********************************** task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:97 Thursday 07 July 2022 21:34:39 +0000 (0:00:00.387) 0:00:31.907 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "force": false, "name": "sar-user", "remove": true, "state": "absent" } TASK [include_role : fedora.linux_system_roles.selinux] ************************ task path: /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:103 Thursday 07 July 2022 21:34:39 +0000 (0:00:00.430) 0:00:32.338 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean redirecting (type: modules) ansible.builtin.sefcontext to community.general.sefcontext redirecting (type: modules) community.general.sefcontext to community.general.system.sefcontext redirecting (type: modules) ansible.builtin.seport to community.general.seport redirecting (type: modules) community.general.seport to community.general.system.seport redirecting (type: modules) ansible.builtin.selogin to community.general.selogin redirecting (type: modules) community.general.selogin to community.general.system.selogin TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Thursday 07 July 2022 21:34:40 +0000 (0:00:00.046) 0:00:32.385 ********* included: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for /cache/rhel-6.qcow2.snap TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Thursday 07 July 2022 21:34:40 +0000 (0:00:00.035) 0:00:32.420 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Thursday 07 July 2022 21:34:40 +0000 (0:00:00.034) 0:00:32.454 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed" ] } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:15 Thursday 07 July 2022 21:34:40 +0000 (0:00:00.502) 0:00:32.957 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : refresh facts] *********************** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:23 Thursday 07 July 2022 21:34:40 +0000 (0:00:00.027) 0:00:32.984 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:28 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.680) 0:00:33.665 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.033) 0:00:33.698 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "configfile": "/etc/selinux/config", "policy": "targeted", "reboot_required": false, "state": "enforcing" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:12 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.366) 0:00:34.064 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set selinux_reboot_required] ********* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:19 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.021) 0:00:34.085 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "selinux_reboot_required": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Fail if reboot is required] ********** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:23 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.044) 0:00:34.130 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Warn if SELinux is disabled] ********* task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:28 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.019) 0:00:34.150 ********* skipping: [/cache/rhel-6.qcow2.snap] => {} TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ******** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:33 Thursday 07 July 2022 21:34:41 +0000 (0:00:00.019) 0:00:34.170 ********* NOTIFIED HANDLER fedora.linux_system_roles.selinux : Reload SELinux policy for /cache/rhel-6.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.selinux : Reload SELinux policy for /cache/rhel-6.qcow2.snap changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "-i", "-" ], "delta": "0:00:23.421519", "end": "2022-07-07 17:35:04.527396", "rc": 0, "start": "2022-07-07 17:34:41.105877" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:40 Thursday 07 July 2022 21:35:05 +0000 (0:00:23.761) 0:00:57.931 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:44 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.038) 0:00:57.970 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux port local modifications] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.034) 0:00:58.004 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux login local modifications] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:52 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.034) 0:00:58.039 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:56 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.034) 0:00:58.074 ********* TASK [fedora.linux_system_roles.selinux : Set SELinux file contexts] *********** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:63 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.019) 0:00:58.094 ********* TASK [fedora.linux_system_roles.selinux : Restore SELinux labels on filesystem tree] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:72 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.021) 0:00:58.115 ********* TASK [fedora.linux_system_roles.selinux : Restore SELinux labels on filesystem tree in check mode] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:78 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.023) 0:00:58.139 ********* TASK [fedora.linux_system_roles.selinux : Set an SELinux label on a port] ****** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:86 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.021) 0:00:58.161 ********* TASK [fedora.linux_system_roles.selinux : Set linux user to SELinux user mapping] *** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:94 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.022) 0:00:58.183 ********* TASK [fedora.linux_system_roles.selinux : Get SELinux modules facts] *********** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:104 Thursday 07 July 2022 21:35:05 +0000 (0:00:00.022) 0:00:58.206 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "selinux_installed_modules": { "abrt": { "0": "enabled" }, "accountsd": { "0": "enabled" }, "ada": { "0": "enabled" }, "afs": { "0": "enabled" }, "aiccu": { "0": "enabled" }, "aide": { "0": "enabled" }, "amanda": { "0": "enabled" }, "amtu": { "0": "enabled" }, "antivirus": { "0": "enabled" }, "apache": { "0": "enabled" }, "apcupsd": { "0": "enabled" }, "arpwatch": { "0": "enabled" }, "asterisk": { "0": "enabled" }, "audioentropy": { "0": "enabled" }, "automount": { "0": "enabled" }, "avahi": { "0": "enabled" }, "awstats": { "0": "enabled" }, "bacula": { "0": "enabled" }, "bcfg2": { "0": "enabled" }, "bind": { "0": "enabled" }, "bitlbee": { "0": "enabled" }, "bluetooth": { "0": "enabled" }, "boinc": { "0": "enabled" }, "bugzilla": { "0": "enabled" }, "cachefilesd": { "0": "enabled" }, "calamaris": { "0": "enabled" }, "canna": { "0": "enabled" }, "ccs": { "0": "enabled" }, "cdrecord": { "0": "enabled" }, "certmaster": { "0": "enabled" }, "certmonger": { "0": "enabled" }, "certwatch": { "0": "enabled" }, "cfengine": { "0": "enabled" }, "cgroup": { "0": "enabled" }, "chrome": { "0": "enabled" }, "chronyd": { "0": "enabled" }, "cinder": { "0": "enabled" }, "cipe": { "0": "enabled" }, "clogd": { "0": "enabled" }, "cloudform": { "0": "enabled" }, "cmirrord": { "0": "enabled" }, "cobbler": { "0": "enabled" }, "collectd": { "0": "enabled" }, "comsat": { "0": "enabled" }, "condor": { "0": "enabled" }, "conman": { "0": "enabled" }, "consolekit": { "0": "enabled" }, "courier": { "0": "enabled" }, "cpufreqselector": { "0": "enabled" }, "ctdbd": { "0": "enabled" }, "cups": { "0": "enabled" }, "cvs": { "0": "enabled" }, "cyphesis": { "0": "enabled" }, "cyrus": { "0": "enabled" }, "daemontools": { "0": "enabled" }, "dbskk": { "0": "enabled" }, "dcc": { "0": "enabled" }, "ddclient": { "0": "enabled" }, "denyhosts": { "0": "enabled" }, "devicekit": { "0": "enabled" }, "dhcp": { "0": "enabled" }, "dictd": { "0": "enabled" }, "dirsrv": { "0": "enabled" }, "dirsrv-admin": { "0": "enabled" }, "dnsmasq": { "0": "enabled" }, "dovecot": { "0": "enabled" }, "drbd": { "0": "enabled" }, "dspam": { "0": "enabled" }, "ethereal": { "0": "enabled" }, "execmem": { "0": "enabled" }, "exim": { "0": "enabled" }, "fail2ban": { "0": "enabled" }, "fcoemon": { "0": "enabled" }, "fetchmail": { "0": "enabled" }, "finger": { "0": "enabled" }, "firewallgui": { "0": "enabled" }, "fprintd": { "0": "enabled" }, "freeipmi": { "0": "enabled" }, "ftp": { "0": "enabled" }, "games": { "0": "enabled" }, "git": { "0": "enabled" }, "gitosis": { "0": "enabled" }, "glance": { "0": "enabled" }, "glusterd": { "0": "enabled" }, "gnome": { "0": "enabled" }, "gnomeclock": { "0": "enabled" }, "gpg": { "0": "enabled" }, "gpm": { "0": "enabled" }, "gpsd": { "0": "enabled" }, "guest": { "0": "enabled" }, "hal": { "0": "enabled" }, "hddtemp": { "0": "enabled" }, "howl": { "0": "enabled" }, "hypervkvp": { "0": "enabled" }, "icecast": { "0": "enabled" }, "inn": { "0": "enabled" }, "ipsec": { "0": "enabled" }, "irc": { "0": "enabled" }, "iscsi": { "0": "enabled" }, "isns": { "0": "enabled" }, "jabber": { "0": "enabled" }, "java": { "0": "enabled" }, "kdump": { "0": "enabled" }, "kdumpgui": { "0": "enabled" }, "keepalived": { "0": "enabled" }, "kerberos": { "0": "enabled" }, "kerneloops": { "0": "enabled" }, "keystone": { "0": "enabled" }, "kismet": { "0": "enabled" }, "ksmtuned": { "0": "enabled" }, "ktalk": { "0": "enabled" }, "l2tpd": { "0": "enabled" }, "ldap": { "0": "enabled" }, "likewise": { "0": "enabled" }, "linuxptp": { "0": "enabled" }, "lircd": { "0": "enabled" }, "livecd": { "0": "enabled" }, "lldpad": { "0": "enabled" }, "lockdev": { "0": "enabled" }, "logadm": { "0": "enabled" }, "lpd": { "0": "enabled" }, "lsm": { "0": "enabled" }, "mailman": { "0": "enabled" }, "matahari": { "0": "enabled" }, "mediawiki": { "0": "enabled" }, "memcached": { "0": "enabled" }, "milter": { "0": "enabled" }, "mip6d": { "0": "enabled" }, "mirrormanager": { "0": "enabled" }, "modemmanager": { "0": "enabled" }, "mono": { "0": "enabled" }, "mozilla": { "0": "enabled" }, "mpd": { "0": "enabled" }, "mplayer": { "0": "enabled" }, "mrtg": { "0": "enabled" }, "munin": { "0": "enabled" }, "mysql": { "0": "enabled" }, "nagios": { "0": "enabled" }, "namespace": { "0": "enabled" }, "ncftool": { "0": "enabled" }, "netlabel": { "0": "enabled" }, "nis": { "0": "enabled" }, "nova": { "0": "enabled" }, "nslcd": { "0": "enabled" }, "nsplugin": { "0": "enabled" }, "ntop": { "0": "enabled" }, "ntp": { "0": "enabled" }, "numad": { "0": "enabled" }, "nut": { "0": "enabled" }, "nx": { "0": "enabled" }, "oddjob": { "0": "enabled" }, "openct": { "0": "enabled" }, "openhpid": { "0": "enabled" }, "openoffice": { "0": "enabled" }, "openshift": { "0": "enabled" }, "openshift-origin": { "0": "enabled" }, "openvpn": { "0": "enabled" }, "openvswitch": { "0": "enabled" }, "openwsman": { "0": "enabled" }, "oracleasm": { "0": "enabled" }, "osad": { "0": "enabled" }, "pads": { "0": "enabled" }, "passenger": { "0": "enabled" }, "pcp": { "0": "enabled" }, "pcscd": { "0": "enabled" }, "pegasus": { "0": "enabled" }, "permissivedomains": { "0": "enabled" }, "pingd": { "0": "enabled" }, "piranha": { "0": "enabled" }, "pkcsslotd": { "0": "enabled" }, "plymouthd": { "0": "enabled" }, "podsleuth": { "0": "enabled" }, "policykit": { "0": "enabled" }, "portmap": { "0": "enabled" }, "portreserve": { "0": "enabled" }, "postfix": { "0": "enabled" }, "postgresql": { "0": "enabled" }, "postgrey": { "0": "enabled" }, "ppp": { "0": "enabled" }, "prelude": { "0": "enabled" }, "privoxy": { "0": "enabled" }, "procmail": { "0": "enabled" }, "psad": { "0": "enabled" }, "ptchown": { "0": "enabled" }, "publicfile": { "0": "enabled" }, "pulseaudio": { "0": "enabled" }, "puppet": { "0": "enabled" }, "pyzor": { "0": "enabled" }, "qemu": { "0": "enabled" }, "qmail": { "0": "enabled" }, "qpidd": { "0": "enabled" }, "quantum": { "0": "enabled" }, "radius": { "0": "enabled" }, "radvd": { "0": "enabled" }, "razor": { "0": "enabled" }, "rdisc": { "0": "enabled" }, "redis": { "0": "enabled" }, "remotelogin": { "0": "enabled" }, "rhcs": { "0": "enabled" }, "rhev": { "0": "enabled" }, "rhgb": { "0": "enabled" }, "rhnsd": { "0": "enabled" }, "rhsmcertd": { "0": "enabled" }, "ricci": { "0": "enabled" }, "rlogin": { "0": "enabled" }, "roundup": { "0": "enabled" }, "rpcbind": { "0": "enabled" }, "rshd": { "0": "enabled" }, "rssh": { "0": "enabled" }, "rsync": { "0": "enabled" }, "rtas": { "0": "enabled" }, "rtkit": { "0": "enabled" }, "rwho": { "0": "enabled" }, "samba": { "0": "enabled" }, "sambagui": { "0": "enabled" }, "sandbox": { "0": "enabled" }, "sanlock": { "0": "enabled" }, "sasl": { "0": "enabled" }, "sblim": { "0": "enabled" }, "screen": { "0": "enabled" }, "sectoolm": { "0": "enabled" }, "sensord": { "0": "enabled" }, "seunshare": { "0": "enabled" }, "sge": { "0": "enabled" }, "shutdown": { "0": "enabled" }, "slocate": { "0": "enabled" }, "slpd": { "0": "enabled" }, "smartmon": { "0": "enabled" }, "smokeping": { "0": "enabled" }, "smoltclient": { "0": "enabled" }, "smstools": { "0": "enabled" }, "snmp": { "0": "enabled" }, "snort": { "0": "enabled" }, "sosreport": { "0": "enabled" }, "soundserver": { "0": "enabled" }, "spamassassin": { "0": "enabled" }, "squid": { "0": "enabled" }, "sssd": { "0": "enabled" }, "staff": { "0": "enabled" }, "stapserver": { "0": "enabled" }, "stunnel": { "0": "enabled" }, "svnserve": { "0": "enabled" }, "swift": { "0": "enabled" }, "sysadm_secadm": { "0": "enabled" }, "sysstat": { "0": "enabled" }, "tcpd": { "0": "enabled" }, "telepathy": { "0": "enabled" }, "telnet": { "0": "enabled" }, "tftp": { "0": "enabled" }, "tgtd": { "0": "enabled" }, "tmpreaper": { "0": "enabled" }, "tomcat": { "0": "enabled" }, "tor": { "0": "enabled" }, "tuned": { "0": "enabled" }, "tvtime": { "0": "enabled" }, "ulogd": { "0": "enabled" }, "uml": { "0": "enabled" }, "unconfined": { "0": "enabled" }, "unconfineduser": { "0": "enabled" }, "unlabelednet": { "0": "enabled" }, "unprivuser": { "0": "enabled" }, "usbmodules": { "0": "enabled" }, "usbmuxd": { "0": "enabled" }, "userhelper": { "0": "enabled" }, "usernetctl": { "0": "enabled" }, "uucp": { "0": "enabled" }, "uuidd": { "0": "enabled" }, "varnishd": { "0": "enabled" }, "vdagent": { "0": "enabled" }, "vhostmd": { "0": "enabled" }, "virt": { "0": "enabled" }, "vmware": { "0": "enabled" }, "vpn": { "0": "enabled" }, "w3c": { "0": "enabled" }, "watchdog": { "0": "enabled" }, "wdmd": { "0": "enabled" }, "webadm": { "0": "enabled" }, "webalizer": { "0": "enabled" }, "wine": { "0": "enabled" }, "xen": { "0": "enabled" }, "xfs": { "0": "enabled" }, "xguest": { "0": "enabled" }, "zabbix": { "0": "enabled" }, "zarafa": { "0": "enabled" }, "zebra": { "0": "enabled" }, "zosremote": { "0": "enabled" } }, "selinux_priorities": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : include_tasks] *********************** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:107 Thursday 07 July 2022 21:35:07 +0000 (0:00:01.216) 0:00:59.423 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/rhel-6.qcow2.snap RUNNING HANDLER [fedora.linux_system_roles.selinux : Reload SELinux policy] **** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/handlers/main.yml:1 Thursday 07 July 2022 21:35:07 +0000 (0:00:00.052) 0:00:59.476 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "semodule", "-R" ], "delta": "0:00:02.181660", "end": "2022-07-07 17:35:08.577098", "rc": 0, "start": "2022-07-07 17:35:06.395438" } RUNNING HANDLER [fedora.linux_system_roles.selinux : Reload SELinux policy] **** task path: /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/handlers/main.yml:1 Thursday 07 July 2022 21:35:09 +0000 (0:00:02.500) 0:01:01.976 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "semodule", "-R" ], "delta": "0:00:02.224490", "end": "2022-07-07 17:35:11.142240", "rc": 0, "start": "2022-07-07 17:35:08.917750" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=31 changed=10 unreachable=0 failed=0 skipped=22 rescued=1 ignored=0 Thursday 07 July 2022 21:35:12 +0000 (0:00:02.579) 0:01:04.556 ********* =============================================================================== Add some mapping ------------------------------------------------------- 23.95s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:27 ------------------ fedora.linux_system_roles.selinux : Drop all local modifications ------- 23.76s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:33 fedora.linux_system_roles.selinux : Reload SELinux policy --------------- 2.58s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/handlers/main.yml:1 fedora.linux_system_roles.selinux : Reload SELinux policy --------------- 2.50s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/handlers/main.yml:1 fedora.linux_system_roles.selinux : Get SELinux modules facts ----------- 1.22s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:104 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:1 ------------------- Gather facts again ------------------------------------------------------ 0.72s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:75 ------------------ fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.69s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 fedora.linux_system_roles.selinux : refresh facts ----------------------- 0.68s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:23 fedora.linux_system_roles.selinux : refresh facts ----------------------- 0.68s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:23 Upload testing /etc/selinux/config -------------------------------------- 0.66s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:38 ------------------ fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled --- 0.58s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:12 Add a Linux System Roles SELinux User ----------------------------------- 0.52s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:23 ------------------ fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.50s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Backup original /etc/selinux/config ------------------------------------- 0.49s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:32 ------------------ Remove Linux System Roles SELinux User ---------------------------------- 0.43s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:97 ------------------ Remove /etc/selinux/config backup --------------------------------------- 0.39s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:92 ------------------ fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled --- 0.37s /tmp/tmpeqs_o7xx/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Switch back to enforcing ------------------------------------------------ 0.32s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:72 ------------------ Restore original /etc/selinux/config ------------------------------------ 0.31s /tmp/tmp8_8zezr9/tests/selinux/tests_selinux_disabled.yml:85 ------------------