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-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-qt4/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-qt4/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-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 Friday 30 May 2025 10:39:11 -0400 (0:00:00.020) 0:00:00.020 ************ ok: [managed-node2] META: ran handlers TASK [Initial changes] ********************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 Friday 30 May 2025 10:39:12 -0400 (0:00:00.853) 0:00:00.873 ************ TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Friday 30 May 2025 10:39:12 -0400 (0:00:00.052) 0:00:00.925 ************ included: /tmp/collections-qt4/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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Friday 30 May 2025 10:39:12 -0400 (0:00:00.017) 0:00:00.943 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Friday 30 May 2025 10:39:12 -0400 (0:00:00.036) 0:00:00.979 ************ included: /tmp/collections-qt4/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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Friday 30 May 2025 10:39:12 -0400 (0:00:00.027) 0:00:01.007 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Friday 30 May 2025 10:39:13 -0400 (0:00:00.443) 0:00:01.451 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Friday 30 May 2025 10:39:13 -0400 (0:00:00.041) 0:00:01.492 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Friday 30 May 2025 10:39:13 -0400 (0:00:00.394) 0:00:01.887 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Friday 30 May 2025 10:39:13 -0400 (0:00:00.038) 0:00:01.926 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Friday 30 May 2025 10:39:13 -0400 (0:00:00.034) 0:00:01.960 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Friday 30 May 2025 10:39:16 -0400 (0:00:02.937) 0:00:04.898 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Friday 30 May 2025 10:39:16 -0400 (0:00:00.036) 0:00:04.935 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Friday 30 May 2025 10:39:19 -0400 (0:00:02.868) 0:00:07.804 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Friday 30 May 2025 10:39:22 -0400 (0:00:02.893) 0:00:10.698 ************ skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Friday 30 May 2025 10:39:22 -0400 (0:00:00.036) 0:00:10.734 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Friday 30 May 2025 10:39:22 -0400 (0:00:00.034) 0:00:10.768 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Friday 30 May 2025 10:39:22 -0400 (0:00:00.035) 0:00:10.804 ************ ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9 Friday 30 May 2025 10:39:23 -0400 (0:00:00.623) 0:00:11.427 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20 Friday 30 May 2025 10:39:23 -0400 (0:00:00.035) 0:00:11.463 ************ [DEPRECATION WARNING]: evaluating 'selinux_state' as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:31 Friday 30 May 2025 10:39:23 -0400 (0:00:00.035) 0:00:11.499 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 Friday 30 May 2025 10:39:23 -0400 (0:00:00.037) 0:00:11.536 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:49 Friday 30 May 2025 10:39:23 -0400 (0:00:00.040) 0:00:11.577 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:54 Friday 30 May 2025 10:39:23 -0400 (0:00:00.012) 0:00:11.589 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:59 Friday 30 May 2025 10:39:23 -0400 (0:00:00.038) 0:00:11.627 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:67 Friday 30 May 2025 10:39:23 -0400 (0:00:00.035) 0:00:11.663 ************ changed: [managed-node2] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "boolean", "-D" ], "delta": "0:00:01.820111", "end": "2025-05-30 10:39:25.792240", "rc": 0, "start": "2025-05-30 10:39:23.972129" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:72 Friday 30 May 2025 10:39:25 -0400 (0:00:02.297) 0:00:13.960 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:77 Friday 30 May 2025 10:39:25 -0400 (0:00:00.050) 0:00:14.010 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:82 Friday 30 May 2025 10:39:25 -0400 (0:00:00.048) 0:00:14.059 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 Friday 30 May 2025 10:39:25 -0400 (0:00:00.050) 0:00:14.110 ************ 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-30T14:39:26.446080+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-30T14:39:25.993649+00:00Z", "task_name": "Set SELinux booleans", "task_path": "/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Friday 30 May 2025 10:39:26 -0400 (0:00:00.454) 0:00:14.564 ************ =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.94s /tmp/collections-qt4/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-qt4/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.87s /tmp/collections-qt4/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.30s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:67 Gathering Facts --------------------------------------------------------- 0.85s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.62s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 fedora.linux_system_roles.selinux : Set SELinux booleans ---------------- 0.45s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.44s /tmp/collections-qt4/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.39s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Initial changes --------------------------------------------------------- 0.05s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 fedora.linux_system_roles.selinux : Purge all SELinux login local modifications --- 0.05s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:82 fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications --- 0.05s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:72 fedora.linux_system_roles.selinux : Purge all SELinux port local modifications --- 0.05s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:77 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Add or remove selinux=0 from args as needed ----------------------------- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 fedora.linux_system_roles.selinux : Warn if SELinux is disabled --------- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:54 fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:31 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 fedora.linux_system_roles.selinux : Ensure ansible_facts used by role --- 0.04s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2