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-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-q79/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-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml PLAY [Check if selinux role sets SELinux booleans] ***************************** [WARNING]: Failure using method (v2_playbook_on_play_start) in callback plugin (): 'Play' object has no attribute 'get_path' TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 Thursday 22 May 2025 15:47:11 -0400 (0:00:00.030) 0:00:00.030 ********** ok: [managed-node2] META: ran handlers TASK [Initial changes] ********************************************************* task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 Thursday 22 May 2025 15:47:12 -0400 (0:00:00.918) 0:00:00.949 ********** TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Thursday 22 May 2025 15:47:12 -0400 (0:00:00.050) 0:00:00.999 ********** included: /tmp/collections-q79/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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Thursday 22 May 2025 15:47:12 -0400 (0:00:00.020) 0:00:01.020 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Thursday 22 May 2025 15:47:12 -0400 (0:00:00.034) 0:00:01.055 ********** included: /tmp/collections-q79/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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Thursday 22 May 2025 15:47:12 -0400 (0:00:00.025) 0:00:01.081 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Thursday 22 May 2025 15:47:13 -0400 (0:00:00.440) 0:00:01.522 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Thursday 22 May 2025 15:47:13 -0400 (0:00:00.066) 0:00:01.589 ********** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Thursday 22 May 2025 15:47:13 -0400 (0:00:00.341) 0:00:01.930 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Thursday 22 May 2025 15:47:13 -0400 (0:00:00.037) 0:00:01.968 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Thursday 22 May 2025 15:47:13 -0400 (0:00:00.033) 0:00:02.001 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Thursday 22 May 2025 15:47:16 -0400 (0:00:02.929) 0:00:04.931 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Thursday 22 May 2025 15:47:16 -0400 (0:00:00.035) 0:00:04.967 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Thursday 22 May 2025 15:47:19 -0400 (0:00:02.848) 0:00:07.816 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Thursday 22 May 2025 15:47:22 -0400 (0:00:02.930) 0:00:10.746 ********** skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Thursday 22 May 2025 15:47:22 -0400 (0:00:00.035) 0:00:10.781 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Thursday 22 May 2025 15:47:22 -0400 (0:00:00.034) 0:00:10.816 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Thursday 22 May 2025 15:47:22 -0400 (0:00:00.033) 0:00:10.850 ********** ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.609) 0:00:11.460 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:14 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.034) 0:00:11.494 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:23 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.032) 0:00:11.527 ********** ok: [managed-node2] => { "ansible_facts": { "selinux_reboot_required": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Fail if reboot is required] ********** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:27 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.035) 0:00:11.563 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:32 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.010) 0:00:11.573 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:37 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.035) 0:00:11.609 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:45 Thursday 22 May 2025 15:47:23 -0400 (0:00:00.033) 0:00:11.643 ********** changed: [managed-node2] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "boolean", "-D" ], "delta": "0:00:02.839459", "end": "2025-05-22 15:47:26.623202", "rc": 0, "start": "2025-05-22 15:47:23.783743" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:50 Thursday 22 May 2025 15:47:26 -0400 (0:00:03.284) 0:00:14.927 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:55 Thursday 22 May 2025 15:47:26 -0400 (0:00:00.035) 0:00:14.963 ********** 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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:60 Thursday 22 May 2025 15:47:26 -0400 (0:00:00.034) 0:00:14.997 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:65 Thursday 22 May 2025 15:47:26 -0400 (0:00:00.034) 0:00:15.032 ********** 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=13 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-05-22T19:47:27.306854+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-22T19:47:26.777949+00:00Z", "task_name": "Set SELinux booleans", "task_path": "/tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:65" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 22 May 2025 15:47:27 -0400 (0:00:00.530) 0:00:15.562 ********** =============================================================================== fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications --- 3.28s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:45 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.93s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.93s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.85s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Gathering Facts --------------------------------------------------------- 0.92s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.61s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 fedora.linux_system_roles.selinux : Set SELinux booleans ---------------- 0.53s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:65 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.44s /tmp/collections-q79/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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.07s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Initial changes --------------------------------------------------------- 0.05s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.04s /tmp/collections-q79/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-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:32 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.04s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications --- 0.04s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:50 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.04s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.04s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:23 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.03s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 fedora.linux_system_roles.selinux : Ensure ansible_facts used by role --- 0.03s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 fedora.linux_system_roles.selinux : Purge all SELinux login local modifications --- 0.03s /tmp/collections-q79/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:60