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-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/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-gg3/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-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Tuesday 17 June 2025 13:15:22 -0400 (0:00:00.019) 0:00:00.019 ********** ok: [managed-node2] TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Tuesday 17 June 2025 13:15:23 -0400 (0:00:00.729) 0:00:00.749 ********** TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Tuesday 17 June 2025 13:15:23 -0400 (0:00:00.030) 0:00:00.779 ********** 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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Tuesday 17 June 2025 13:15:23 -0400 (0:00:00.444) 0:00:01.224 ********** 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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Tuesday 17 June 2025 13:15:23 -0400 (0:00:00.035) 0:00:01.259 ********** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Tuesday 17 June 2025 13:15:24 -0400 (0:00:00.349) 0:00:01.609 ********** 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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Tuesday 17 June 2025 13:15:24 -0400 (0:00:00.067) 0:00:01.677 ********** 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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Tuesday 17 June 2025 13:15:24 -0400 (0:00:00.032) 0:00:01.709 ********** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Tuesday 17 June 2025 13:15:39 -0400 (0:00:15.133) 0:00:16.842 ********** 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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Tuesday 17 June 2025 13:15:39 -0400 (0:00:00.036) 0:00:16.879 ********** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Tuesday 17 June 2025 13:15:42 -0400 (0:00:03.253) 0:00:20.133 ********** changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: policycoreutils-python-utils-2.9-26.el8.noarch" ] } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Tuesday 17 June 2025 13:15:46 -0400 (0:00:03.971) 0:00:24.104 ********** skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Tuesday 17 June 2025 13:15:46 -0400 (0:00:00.033) 0:00:24.138 ********** 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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Tuesday 17 June 2025 13:15:46 -0400 (0:00:00.032) 0:00:24.170 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Tuesday 17 June 2025 13:15:46 -0400 (0:00:00.031) 0:00:24.202 ********** ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Tuesday 17 June 2025 13:15:47 -0400 (0:00:00.652) 0:00:24.855 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Tuesday 17 June 2025 13:15:47 -0400 (0:00:00.035) 0:00:24.891 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Tuesday 17 June 2025 13:15:47 -0400 (0:00:00.032) 0:00:24.923 ********** ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Tuesday 17 June 2025 13:15:47 -0400 (0:00:00.036) 0:00:24.960 ********** ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.628159", "end": "2025-06-17 13:15:48.470902", "rc": 0, "start": "2025-06-17 13:15:47.842743" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Tuesday 17 June 2025 13:15:48 -0400 (0:00:01.099) 0:00:26.060 ********** ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.522846", "end": "2025-06-17 13:15:49.349785", "rc": 0, "start": "2025-06-17 13:15:48.826939" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Tuesday 17 June 2025 13:15:49 -0400 (0:00:00.878) 0:00:26.938 ********** ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.553140", "end": "2025-06-17 13:15:50.259899", "rc": 0, "start": "2025-06-17 13:15:49.706759" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Tuesday 17 June 2025 13:15:50 -0400 (0:00:00.910) 0:00:27.848 ********** ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.529496", "end": "2025-06-17 13:15:51.141655", "rc": 0, "start": "2025-06-17 13:15:50.612159" } TASK [Initial changes] ********************************************************* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Tuesday 17 June 2025 13:15:51 -0400 (0:00:00.882) 0:00:28.731 ********** 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-gg3/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 ******************************************************************** Tuesday 17 June 2025 13:15:51 -0400 (0:00:00.038) 0:00:28.769 ********** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------ 15.13s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 3.97s /tmp/collections-gg3/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-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Get local modifications - boolean --------------------------------------- 1.10s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Get local modifications - login ----------------------------------------- 0.91s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - fcontext -------------------------------------- 0.88s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Get local modifications - port ------------------------------------------ 0.88s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Ensure ansible_facts used by tests -------------------------------------- 0.73s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.65s /tmp/collections-gg3/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.44s /tmp/collections-gg3/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.35s /tmp/collections-gg3/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.07s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Initial changes --------------------------------------------------------- 0.04s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.04s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Set is_el6 flag --------------------------------------------------------- 0.04s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Ensure selinux-policy-targeted ------------------------------------------ 0.04s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.03s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Ensure findmnt ---------------------------------------------------------- 0.03s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.03s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86