ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-Grq/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 '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-Grq/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-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Saturday 28 June 2025 16:18:27 -0400 (0:00:00.020) 0:00:00.020 ********* ok: [managed-node2] TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Saturday 28 June 2025 16:18:28 -0400 (0:00:00.723) 0:00:00.744 ********* TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Saturday 28 June 2025 16:18:28 -0400 (0:00:00.032) 0:00:00.777 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Saturday 28 June 2025 16:18:28 -0400 (0:00:00.445) 0:00:01.222 ********* ok: [managed-node2] => { "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-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Saturday 28 June 2025 16:18:29 -0400 (0:00:00.036) 0:00:01.258 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Saturday 28 June 2025 16:18:29 -0400 (0:00:00.338) 0:00:01.597 ********* ok: [managed-node2] => { "ansible_facts": { "__selinux_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Saturday 28 June 2025 16:18:29 -0400 (0:00:00.059) 0:00:01.657 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Saturday 28 June 2025 16:18:29 -0400 (0:00:00.033) 0:00:01.690 ********* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-libselinux python3-policycoreutils TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Saturday 28 June 2025 16:18:44 -0400 (0:00:14.938) 0:00:16.629 ********* skipping: [managed-node2] => { "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-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Saturday 28 June 2025 16:18:44 -0400 (0:00:00.035) 0:00:16.664 ********* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Saturday 28 June 2025 16:18:47 -0400 (0:00:03.250) 0:00:19.915 ********* changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: policycoreutils-python-utils-2.9-26.el8.noarch" ] } lsrpackages: policycoreutils-python-utils TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Saturday 28 June 2025 16:18:51 -0400 (0:00:03.989) 0:00:23.905 ********* skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Saturday 28 June 2025 16:18:51 -0400 (0:00:00.034) 0:00:23.939 ********* skipping: [managed-node2] => { "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-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Saturday 28 June 2025 16:18:51 -0400 (0:00:00.033) 0:00:23.973 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Saturday 28 June 2025 16:18:51 -0400 (0:00:00.033) 0:00:24.006 ********* ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Saturday 28 June 2025 16:18:52 -0400 (0:00:00.651) 0:00:24.657 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Saturday 28 June 2025 16:18:52 -0400 (0:00:00.033) 0:00:24.691 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Saturday 28 June 2025 16:18:52 -0400 (0:00:00.032) 0:00:24.724 ********* ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Saturday 28 June 2025 16:18:52 -0400 (0:00:00.037) 0:00:24.762 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.622569", "end": "2025-06-28 16:18:53.531178", "rc": 0, "start": "2025-06-28 16:18:52.908609" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Saturday 28 June 2025 16:18:53 -0400 (0:00:01.070) 0:00:25.833 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.522721", "end": "2025-06-28 16:18:54.405765", "rc": 0, "start": "2025-06-28 16:18:53.883044" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Saturday 28 June 2025 16:18:54 -0400 (0:00:00.873) 0:00:26.706 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.552644", "end": "2025-06-28 16:18:55.310342", "rc": 0, "start": "2025-06-28 16:18:54.757698" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Saturday 28 June 2025 16:18:55 -0400 (0:00:00.905) 0:00:27.612 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.530401", "end": "2025-06-28 16:18:56.186434", "rc": 0, "start": "2025-06-28 16:18:55.656033" } TASK [Initial changes] ********************************************************* task path: /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Saturday 28 June 2025 16:18:56 -0400 (0:00:00.875) 0:00:28.487 ********* ERROR! couldn't resolve module/action 'community.general.sefcontext'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml': line 121, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Set SELinux file contexts ^ here PLAY RECAP ********************************************************************* managed-node2 : ok=14 changed=1 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 28 June 2025 16:18:56 -0400 (0:00:00.038) 0:00:28.526 ********* =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------ 14.94s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 3.99s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 3.25s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Get local modifications - boolean --------------------------------------- 1.07s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Get local modifications - login ----------------------------------------- 0.91s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - fcontext -------------------------------------- 0.88s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Get local modifications - port ------------------------------------------ 0.87s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Ensure ansible_facts used by tests -------------------------------------- 0.72s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.65s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.45s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.34s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.06s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Initial changes --------------------------------------------------------- 0.04s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Set is_el6 flag --------------------------------------------------------- 0.04s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.04s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.03s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Ensure selinux-policy-targeted ------------------------------------------ 0.03s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.03s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.03s /tmp/collections-Grq/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26