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-oij/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-oij/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-oij/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-oij/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 Thursday 22 May 2025 10:46:13 -0400 (0:00:00.020) 0:00:00.020 ********** ok: [managed-node2] META: ran handlers TASK [Initial changes] ********************************************************* task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.862) 0:00:00.883 ********** TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.052) 0:00:00.935 ********** included: /tmp/collections-oij/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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.022) 0:00:00.958 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.038) 0:00:00.996 ********** included: /tmp/collections-oij/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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.029) 0:00:01.025 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.483) 0:00:01.509 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Thursday 22 May 2025 10:46:14 -0400 (0:00:00.050) 0:00:01.560 ********** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Thursday 22 May 2025 10:46:15 -0400 (0:00:00.355) 0:00:01.915 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Thursday 22 May 2025 10:46:15 -0400 (0:00:00.039) 0:00:01.955 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Thursday 22 May 2025 10:46:15 -0400 (0:00:00.035) 0:00:01.990 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Thursday 22 May 2025 10:46:18 -0400 (0:00:02.934) 0:00:04.925 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Thursday 22 May 2025 10:46:18 -0400 (0:00:00.038) 0:00:04.963 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Thursday 22 May 2025 10:46:21 -0400 (0:00:02.851) 0:00:07.814 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Thursday 22 May 2025 10:46:24 -0400 (0:00:02.909) 0:00:10.723 ********** skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Thursday 22 May 2025 10:46:24 -0400 (0:00:00.041) 0:00:10.765 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Thursday 22 May 2025 10:46:24 -0400 (0:00:00.037) 0:00:10.802 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Thursday 22 May 2025 10:46:24 -0400 (0:00:00.036) 0:00:10.839 ********** ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Thursday 22 May 2025 10:46:24 -0400 (0:00:00.620) 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:14 Thursday 22 May 2025 10:46:24 -0400 (0:00:00.053) 0:00:11.513 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:23 Thursday 22 May 2025 10:46:24 -0400 (0:00:00.051) 0:00:11.564 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:27 Thursday 22 May 2025 10:46:25 -0400 (0:00:00.058) 0:00:11.623 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:32 Thursday 22 May 2025 10:46:25 -0400 (0:00:00.016) 0:00:11.640 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:37 Thursday 22 May 2025 10:46:25 -0400 (0:00:00.056) 0:00:11.696 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:45 Thursday 22 May 2025 10:46:25 -0400 (0:00:00.067) 0:00:11.764 ********** changed: [managed-node2] => { "changed": true, "cmd": [ "/usr/sbin/semanage", "boolean", "-D" ], "delta": "0:00:03.027991", "end": "2025-05-22 10:46:28.633065", "rc": 0, "start": "2025-05-22 10:46:25.605074" } TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:50 Thursday 22 May 2025 10:46:28 -0400 (0:00:03.515) 0:00:15.279 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:55 Thursday 22 May 2025 10:46:28 -0400 (0:00:00.039) 0:00:15.318 ********** 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-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:60 Thursday 22 May 2025 10:46:28 -0400 (0:00:00.049) 0:00:15.368 ********** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:65 Thursday 22 May 2025 10:46:28 -0400 (0:00:00.050) 0:00:15.418 ********** 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-22T14:46:29.323215+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-22T14:46:28.835687+00:00Z", "task_name": "Set SELinux booleans", "task_path": "/tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:65" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 22 May 2025 10:46:29 -0400 (0:00:00.489) 0:00:15.908 ********** =============================================================================== fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications --- 3.52s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:45 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.93s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.91s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.85s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Gathering Facts --------------------------------------------------------- 0.86s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.62s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 fedora.linux_system_roles.selinux : Set SELinux booleans ---------------- 0.49s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:65 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.48s /tmp/collections-oij/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.36s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Drop all local modifications -------- 0.07s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:37 fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.06s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:23 fedora.linux_system_roles.selinux : Warn if SELinux is disabled --------- 0.06s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:32 fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled --- 0.05s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Initial changes --------------------------------------------------------- 0.05s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_boolean.yml:5 fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled --- 0.05s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:14 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.05s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.selinux : Purge all SELinux login local modifications --- 0.05s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:60 fedora.linux_system_roles.selinux : Purge all SELinux port local modifications --- 0.05s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:55 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.04s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications --- 0.04s /tmp/collections-oij/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:50