ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_fcontext.yml *************************************************** 1 plays in /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml PLAY [Check if selinux role sets SELinux fcontext mappings] ******************** META: ran handlers TASK [Ensure ansible_facts used by tests] ************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Saturday 08 November 2025 15:17:07 -0500 (0:00:00.025) 0:00:00.025 ***** ok: [managed-node1] TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Saturday 08 November 2025 15:17:08 -0500 (0:00:00.672) 0:00:00.697 ***** TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Saturday 08 November 2025 15:17:08 -0500 (0:00:00.045) 0:00:00.743 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Saturday 08 November 2025 15:17:08 -0500 (0:00:00.400) 0:00:01.144 ***** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Saturday 08 November 2025 15:17:08 -0500 (0:00:00.040) 0:00:01.184 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Saturday 08 November 2025 15:17:09 -0500 (0:00:00.273) 0:00:01.458 ***** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Saturday 08 November 2025 15:17:09 -0500 (0:00:00.041) 0:00:01.500 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-34.el7.x86_64 providing policycoreutils-python is already installed" ] } lsrpackages: libselinux-python policycoreutils-python TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.963) 0:00:02.463 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.035) 0:00:02.499 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.037) 0:00:02.536 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.039) 0:00:02.576 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.036) 0:00:02.613 ***** skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.035) 0:00:02.649 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.036) 0:00:02.685 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Saturday 08 November 2025 15:17:10 -0500 (0:00:00.035) 0:00:02.721 ***** ok: [managed-node1] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Saturday 08 November 2025 15:17:12 -0500 (0:00:01.507) 0:00:04.228 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Saturday 08 November 2025 15:17:12 -0500 (0:00:00.035) 0:00:04.263 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Saturday 08 November 2025 15:17:12 -0500 (0:00:00.034) 0:00:04.298 ***** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Saturday 08 November 2025 15:17:12 -0500 (0:00:00.041) 0:00:04.339 ***** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.154005", "end": "2025-11-08 15:17:12.665616", "rc": 0, "start": "2025-11-08 15:17:12.511611" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Saturday 08 November 2025 15:17:12 -0500 (0:00:00.573) 0:00:04.913 ***** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.152177", "end": "2025-11-08 15:17:13.101320", "rc": 0, "start": "2025-11-08 15:17:12.949143" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Saturday 08 November 2025 15:17:13 -0500 (0:00:00.436) 0:00:05.350 ***** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.151714", "end": "2025-11-08 15:17:13.541249", "rc": 0, "start": "2025-11-08 15:17:13.389535" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Saturday 08 November 2025 15:17:13 -0500 (0:00:00.438) 0:00:05.788 ***** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.153052", "end": "2025-11-08 15:17:13.978765", "rc": 0, "start": "2025-11-08 15:17:13.825713" } TASK [Initial changes] ********************************************************* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.436) 0:00:06.225 ***** TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.093) 0:00:06.318 ***** included: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for managed-node1 TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.019) 0:00:06.337 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.036) 0:00:06.374 ***** included: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml for managed-node1 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.031) 0:00:06.406 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.035) 0:00:06.441 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.035) 0:00:06.477 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.042) 0:00:06.519 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Saturday 08 November 2025 15:17:14 -0500 (0:00:00.035) 0:00:06.554 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-34.el7.x86_64 providing policycoreutils-python is already installed" ] } lsrpackages: libselinux-python policycoreutils-python TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.799) 0:00:07.354 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.035) 0:00:07.390 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.035) 0:00:07.426 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.037) 0:00:07.463 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.036) 0:00:07.500 ***** skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.043) 0:00:07.543 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.036) 0:00:07.579 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.036) 0:00:07.616 ***** ok: [managed-node1] TASK [fedora.linux_system_roles.selinux : Run systemctl] *********************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:8 Saturday 08 November 2025 15:17:15 -0500 (0:00:00.498) 0:00:08.114 ***** ok: [managed-node1] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.006151", "end": "2025-11-08 15:17:16.156676", "failed_when_result": false, "rc": 0, "start": "2025-11-08 15:17:16.150525" } STDOUT: running TASK [fedora.linux_system_roles.selinux : Require installed systemd] *********** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:15 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.288) 0:00:08.403 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag to indicate that systemd runtime operations are available] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.037) 0:00:08.440 ***** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_booted": true }, "changed": false } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:29 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.040) 0:00:08.481 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:40 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.040) 0:00:08.521 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set selinux_reboot_required] ********* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:52 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.041) 0:00:08.562 ***** ok: [managed-node1] => { "ansible_facts": { "selinux_reboot_required": false }, "changed": false } TASK [Add or remove selinux=0 from args as needed] ***************************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:56 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.041) 0:00:08.604 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is required] ********** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:70 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.040) 0:00:08.645 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Warn if SELinux is disabled] ********* task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:77 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.012) 0:00:08.657 ***** skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ******** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:82 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.034) 0:00:08.692 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:90 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.036) 0:00:08.729 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:95 Saturday 08 November 2025 15:17:16 -0500 (0:00:00.035) 0:00:08.764 ***** changed: [managed-node1] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "fcontext", "-D" ], "delta": "0:00:00.295430", "end": "2025-11-08 15:17:17.093274", "rc": 0, "start": "2025-11-08 15:17:16.797844" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux port local modifications] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:100 Saturday 08 November 2025 15:17:17 -0500 (0:00:00.576) 0:00:09.341 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux login local modifications] *** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:105 Saturday 08 November 2025 15:17:17 -0500 (0:00:00.035) 0:00:09.376 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:110 Saturday 08 November 2025 15:17:17 -0500 (0:00:00.035) 0:00:09.412 ***** TASK [fedora.linux_system_roles.selinux : Set SELinux file contexts] *********** task path: /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:121 Saturday 08 November 2025 15:17:17 -0500 (0:00:00.033) 0:00:09.446 ***** fatal: [managed-node1]: FAILED! => {} MSG: Unable to import community.general.sefcontext due to invalid syntax PLAY RECAP ********************************************************************* managed-node1 : ok=20 changed=1 unreachable=0 failed=1 skipped=32 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-11-08T20:17:17.359880Z", "host": "managed-node1", "message": "Unable to import community.general.sefcontext due to invalid syntax", "start_time": "2025-11-08T20:17:17.241905Z", "task_name": "Set SELinux file contexts", "task_path": "/tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:121" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 08 November 2025 15:17:17 -0500 (0:00:00.120) 0:00:09.566 ***** =============================================================================== fedora.linux_system_roles.selinux : Refresh facts ----------------------- 1.51s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.96s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.80s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Ensure ansible_facts used by tests -------------------------------------- 0.67s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications --- 0.58s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:95 Get local modifications - boolean --------------------------------------- 0.57s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.50s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Get local modifications - login ----------------------------------------- 0.44s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - port ------------------------------------------ 0.44s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Get local modifications - fcontext -------------------------------------- 0.44s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.40s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 fedora.linux_system_roles.selinux : Run systemctl ----------------------- 0.29s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:8 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.27s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Set SELinux file contexts ----------- 0.12s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:121 Initial changes --------------------------------------------------------- 0.09s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Ensure SELinux testing packages ----------------------------------------- 0.05s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.04s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.04s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Set is_el6 flag --------------------------------------------------------- 0.04s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.04s /tmp/collections-SCN/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:52 -- Logs begin at Sat 2025-11-08 15:12:02 EST, end at Sat 2025-11-08 15:17:17 EST. -- Nov 08 15:17:07 managed-node1 systemd-logind[505]: New session 11 of user root. -- Subject: A new session 11 has been created for user root -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 11 has been created for the user root. -- -- The leading process of the session is 13701. Nov 08 15:17:07 managed-node1 systemd[1]: Started Session 11 of user root. -- Subject: Unit session-11.scope has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-11.scope has finished starting up. -- -- The start-up result is done. Nov 08 15:17:07 managed-node1 sshd[13701]: pam_unix(sshd:session): session opened for user root by (uid=0) Nov 08 15:17:07 managed-node1 sshd[13701]: Received disconnect from 10.31.8.125 port 50368:11: disconnected by user Nov 08 15:17:07 managed-node1 sshd[13701]: Disconnected from 10.31.8.125 port 50368 Nov 08 15:17:07 managed-node1 sshd[13701]: pam_unix(sshd:session): session closed for user root Nov 08 15:17:07 managed-node1 systemd-logind[505]: Removed session 11. -- Subject: Session 11 has been terminated -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 11 has been terminated. Nov 08 15:17:08 managed-node1 ansible-setup[13765]: Invoked with filter=* gather_subset=['!all', '!min', 'distribution', 'distribution_major_version', 'os_family', 'python_version'] fact_path=/etc/ansible/facts.d gather_timeout=10 Nov 08 15:17:08 managed-node1 ansible-stat[13819]: Invoked with checksum_algorithm=sha1 get_checksum=True follow=False path=/run/ostree-booted get_md5=False get_mime=True get_attributes=True Nov 08 15:17:09 managed-node1 ansible-stat[13868]: Invoked with checksum_algorithm=sha1 get_checksum=True follow=False path=/sbin/transactional-update get_md5=False get_mime=True get_attributes=True Nov 08 15:17:09 managed-node1 ansible-setup[13917]: Invoked with filter=ansible_pkg_mgr gather_subset=['!all'] fact_path=/etc/ansible/facts.d gather_timeout=10 Nov 08 15:17:10 managed-node1 ansible-yum[13947]: Invoked with lock_timeout=30 update_cache=False disable_excludes=None exclude=[] allow_downgrade=False disable_gpg_check=False conf_file=None use_backend=auto state=present disablerepo=[] releasever=None skip_broken=False autoremove=False download_dir=None enable_plugin=[] installroot=/ install_weak_deps=True name=['libselinux-python', 'policycoreutils-python'] download_only=False bugfix=False list=None install_repoquery=True update_only=False disable_plugin=[] enablerepo=[] security=False validate_certs=True Nov 08 15:17:10 managed-node1 ansible-setup[14000]: Invoked with filter=ansible_selinux gather_subset=['all'] fact_path=/etc/ansible/facts.d gather_timeout=10 Nov 08 15:17:12 managed-node1 ansible-command[14074]: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=/usr/sbin/semanage boolean -l -n -C removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None Nov 08 15:17:12 managed-node1 ansible-command[14124]: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=/usr/sbin/semanage port -l -n -C removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None Nov 08 15:17:13 managed-node1 ansible-command[14174]: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=/usr/sbin/semanage login -l -n -C removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None Nov 08 15:17:13 managed-node1 ansible-command[14224]: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=/usr/sbin/semanage fcontext -l -n -C removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None Nov 08 15:17:14 managed-node1 ansible-setup[14274]: Invoked with filter=ansible_pkg_mgr gather_subset=['!all'] fact_path=/etc/ansible/facts.d gather_timeout=10 Nov 08 15:17:15 managed-node1 ansible-yum[14304]: Invoked with lock_timeout=30 update_cache=False disable_excludes=None exclude=[] allow_downgrade=False disable_gpg_check=False conf_file=None use_backend=auto state=present disablerepo=[] releasever=None skip_broken=False autoremove=False download_dir=None enable_plugin=[] installroot=/ install_weak_deps=True name=['libselinux-python', 'policycoreutils-python'] download_only=False bugfix=False list=None install_repoquery=True update_only=False disable_plugin=[] enablerepo=[] security=False validate_certs=True Nov 08 15:17:15 managed-node1 ansible-setup[14357]: Invoked with filter=ansible_selinux gather_subset=['all'] fact_path=/etc/ansible/facts.d gather_timeout=10 Nov 08 15:17:16 managed-node1 ansible-command[14431]: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=systemctl is-system-running removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None Nov 08 15:17:16 managed-node1 ansible-command[14481]: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=/usr/sbin/semanage fcontext -D removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None Nov 08 15:17:17 managed-node1 sshd[14516]: Accepted publickey for root from 10.31.8.125 port 50376 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Nov 08 15:17:17 managed-node1 systemd-logind[505]: New session 12 of user root. -- Subject: A new session 12 has been created for user root -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 12 has been created for the user root. -- -- The leading process of the session is 14516. Nov 08 15:17:17 managed-node1 systemd[1]: Started Session 12 of user root. -- Subject: Unit session-12.scope has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-12.scope has finished starting up. -- -- The start-up result is done. Nov 08 15:17:17 managed-node1 sshd[14516]: pam_unix(sshd:session): session opened for user root by (uid=0) Nov 08 15:17:17 managed-node1 sshd[14516]: Received disconnect from 10.31.8.125 port 50376:11: disconnected by user Nov 08 15:17:17 managed-node1 sshd[14516]: Disconnected from 10.31.8.125 port 50376 Nov 08 15:17:17 managed-node1 sshd[14516]: pam_unix(sshd:session): session closed for user root Nov 08 15:17:17 managed-node1 systemd-logind[505]: Removed session 12. -- Subject: Session 12 has been terminated -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 12 has been terminated. Nov 08 15:17:17 managed-node1 sshd[14526]: Accepted publickey for root from 10.31.8.125 port 50378 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Nov 08 15:17:17 managed-node1 systemd-logind[505]: New session 13 of user root. -- Subject: A new session 13 has been created for user root -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 13 has been created for the user root. -- -- The leading process of the session is 14526. Nov 08 15:17:17 managed-node1 systemd[1]: Started Session 13 of user root. -- Subject: Unit session-13.scope has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-13.scope has finished starting up. -- -- The start-up result is done. Nov 08 15:17:17 managed-node1 sshd[14526]: pam_unix(sshd:session): session opened for user root by (uid=0)