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-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-yEs/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-yEs/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-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Tuesday 17 June 2025 14:29:36 -0400 (0:00:00.025) 0:00:00.025 ********** ok: [managed-node1] TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Tuesday 17 June 2025 14:29:37 -0400 (0:00:00.647) 0:00:00.672 ********** TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Tuesday 17 June 2025 14:29:37 -0400 (0:00:00.041) 0:00:00.713 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Tuesday 17 June 2025 14:29:37 -0400 (0:00:00.388) 0:00:01.102 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Tuesday 17 June 2025 14:29:37 -0400 (0:00:00.039) 0:00:01.142 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Tuesday 17 June 2025 14:29:37 -0400 (0:00:00.287) 0:00:01.429 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Tuesday 17 June 2025 14:29:38 -0400 (0:00:00.094) 0:00:01.524 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Tuesday 17 June 2025 14:29:39 -0400 (0:00:01.203) 0:00:02.727 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.038) 0:00:02.765 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.038) 0:00:02.804 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.040) 0:00:02.844 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.040) 0:00:02.885 ********** skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.038) 0:00:02.924 ********** 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-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.038) 0:00:02.962 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Tuesday 17 June 2025 14:29:39 -0400 (0:00:00.038) 0:00:03.001 ********** ok: [managed-node1] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Tuesday 17 June 2025 14:29:40 -0400 (0:00:00.536) 0:00:03.537 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Tuesday 17 June 2025 14:29:40 -0400 (0:00:00.037) 0:00:03.575 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Tuesday 17 June 2025 14:29:40 -0400 (0:00:00.041) 0:00:03.616 ********** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Tuesday 17 June 2025 14:29:40 -0400 (0:00:00.056) 0:00:03.673 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.158784", "end": "2025-06-17 14:29:40.769235", "rc": 0, "start": "2025-06-17 14:29:40.610451" } STDOUT: samba_enable_home_dirs (on , on) Allow samba to enable home dirs TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Tuesday 17 June 2025 14:29:40 -0400 (0:00:00.589) 0:00:04.262 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.159575", "end": "2025-06-17 14:29:41.229143", "rc": 0, "start": "2025-06-17 14:29:41.069568" } STDOUT: ssh_port_t tcp 22100 TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Tuesday 17 June 2025 14:29:41 -0400 (0:00:00.466) 0:00:04.729 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.157713", "end": "2025-06-17 14:29:41.734209", "rc": 0, "start": "2025-06-17 14:29:41.576496" } STDOUT: sar-user staff_u s0-s0:c0.c1023 * TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Tuesday 17 June 2025 14:29:41 -0400 (0:00:00.508) 0:00:05.238 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.159475", "end": "2025-06-17 14:29:42.250459", "rc": 0, "start": "2025-06-17 14:29:42.090984" } STDOUT: /tmp/test_dir all files system_u:object_r:user_home_dir_t:s0 TASK [Initial changes] ********************************************************* task path: /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Tuesday 17 June 2025 14:29:42 -0400 (0:00:00.502) 0:00:05.740 ********** 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-yEs/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-node1 : ok=12 changed=0 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 17 June 2025 14:29:42 -0400 (0:00:00.058) 0:00:05.798 ********** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 1.20s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Ensure ansible_facts used by tests -------------------------------------- 0.65s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Get local modifications - boolean --------------------------------------- 0.59s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.54s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Get local modifications - login ----------------------------------------- 0.51s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - fcontext -------------------------------------- 0.50s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Get local modifications - port ------------------------------------------ 0.47s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.39s /tmp/collections-yEs/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.29s /tmp/collections-yEs/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.09s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Initial changes --------------------------------------------------------- 0.06s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_fcontext.yml:17 Set is_el6 flag --------------------------------------------------------- 0.06s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Ensure findmnt ---------------------------------------------------------- 0.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Ensure SELinux testing packages ----------------------------------------- 0.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 0.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 0.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-yEs/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.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.04s /tmp/collections-yEs/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46