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-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-s0K/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_boolean.yml **************************************************** 1 plays in /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml PLAY [Check if selinux role sets SELinux booleans] ***************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 Friday 30 May 2025 09:45:36 -0400 (0:00:00.037) 0:00:00.037 ************ ok: [managed-node2] META: ran handlers TASK [Initial changes] ********************************************************* task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 Friday 30 May 2025 09:45:37 -0400 (0:00:00.930) 0:00:00.967 ************ TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Friday 30 May 2025 09:45:37 -0400 (0:00:00.055) 0:00:01.023 ************ included: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for managed-node2 TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Friday 30 May 2025 09:45:37 -0400 (0:00:00.018) 0:00:01.041 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Friday 30 May 2025 09:45:37 -0400 (0:00:00.038) 0:00:01.079 ************ included: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml for managed-node2 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Friday 30 May 2025 09:45:37 -0400 (0:00:00.029) 0:00:01.109 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Friday 30 May 2025 09:45:37 -0400 (0:00:00.457) 0:00:01.567 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Friday 30 May 2025 09:45:37 -0400 (0:00:00.039) 0:00:01.606 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Friday 30 May 2025 09:45:38 -0400 (0:00:00.351) 0:00:01.958 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Friday 30 May 2025 09:45:38 -0400 (0:00:00.039) 0:00:01.998 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Friday 30 May 2025 09:45:38 -0400 (0:00:00.036) 0:00:02.034 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Friday 30 May 2025 09:45:41 -0400 (0:00:02.959) 0:00:04.993 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Friday 30 May 2025 09:45:41 -0400 (0:00:00.039) 0:00:05.033 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Friday 30 May 2025 09:45:44 -0400 (0:00:02.875) 0:00:07.909 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Friday 30 May 2025 09:45:47 -0400 (0:00:02.888) 0:00:10.798 ************ skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Friday 30 May 2025 09:45:47 -0400 (0:00:00.053) 0:00:10.851 ************ 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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Friday 30 May 2025 09:45:47 -0400 (0:00:00.054) 0:00:10.906 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Friday 30 May 2025 09:45:47 -0400 (0:00:00.055) 0:00:10.961 ************ ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9 Friday 30 May 2025 09:45:47 -0400 (0:00:00.660) 0:00:11.621 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20 Friday 30 May 2025 09:45:47 -0400 (0:00:00.045) 0:00:11.667 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set selinux_reboot_required] ********* task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:31 Friday 30 May 2025 09:45:48 -0400 (0:00:00.043) 0:00:11.710 ************ ok: [managed-node2] => { "ansible_facts": { "selinux_reboot_required": false }, "changed": false } TASK [Add or remove selinux=0 from args as needed] ***************************** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 Friday 30 May 2025 09:45:48 -0400 (0:00:00.040) 0:00:11.751 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is required] ********** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:49 Friday 30 May 2025 09:45:48 -0400 (0:00:00.040) 0:00:11.791 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Warn if SELinux is disabled] ********* task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:54 Friday 30 May 2025 09:45:48 -0400 (0:00:00.011) 0:00:11.803 ************ ok: [managed-node2] => {} MSG: SELinux is disabled on system - some SELinux modules can crash TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ******** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:59 Friday 30 May 2025 09:45:48 -0400 (0:00:00.038) 0:00:11.841 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:67 Friday 30 May 2025 09:45:48 -0400 (0:00:00.035) 0:00:11.877 ************ changed: [managed-node2] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "boolean", "-D" ], "delta": "0:00:01.629889", "end": "2025-05-30 09:45:50.224979", "rc": 0, "start": "2025-05-30 09:45:48.595090" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:72 Friday 30 May 2025 09:45:50 -0400 (0:00:02.090) 0:00:13.968 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux port local modifications] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:77 Friday 30 May 2025 09:45:50 -0400 (0:00:00.035) 0:00:14.003 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux login local modifications] *** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:82 Friday 30 May 2025 09:45:50 -0400 (0:00:00.035) 0:00:14.039 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 Friday 30 May 2025 09:45:50 -0400 (0:00:00.035) 0:00:14.075 ************ failed: [managed-node2] (item={'name': 'samba_enable_home_dirs', 'state': 'on', 'persistent': 'yes'}) => { "__selinux_item": { "name": "samba_enable_home_dirs", "persistent": "yes", "state": "on" }, "ansible_loop_var": "__selinux_item", "changed": false } MSG: Failed to get list of boolean names PLAY RECAP ********************************************************************* managed-node2 : ok=14 changed=1 unreachable=0 failed=1 skipped=14 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-05-30T13:45:50.839529+00:00Z", "host": "managed-node2", "loop_item": { "name": "samba_enable_home_dirs", "persistent": "yes", "state": "on" }, "loop_label": "", "loop_var": "__selinux_item", "message": "Failed to get list of boolean names", "start_time": "2025-05-30T13:45:50.380488+00:00Z", "task_name": "Set SELinux booleans", "task_path": "/tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Friday 30 May 2025 09:45:50 -0400 (0:00:00.461) 0:00:14.536 ************ =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.96s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.89s /tmp/collections-s0K/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 --- 2.88s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications --- 2.09s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:67 Gathering Facts --------------------------------------------------------- 0.93s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.66s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 fedora.linux_system_roles.selinux : Set SELinux booleans ---------------- 0.46s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.46s /tmp/collections-s0K/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-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Initial changes --------------------------------------------------------- 0.06s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 fedora.linux_system_roles.selinux : Fail if reboot is needed and not set --- 0.06s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.05s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.05s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled --- 0.05s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9 fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled --- 0.04s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20 Add or remove selinux=0 from args as needed ----------------------------- 0.04s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.04s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:31 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.04s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.04s /tmp/collections-s0K/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46