ansible-playbook [core 2.17.12] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-Mf9 executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, May 9 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', 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 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_selinux_modules.yml ******************************************** 1 plays in /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml PLAY [Test management of SELinux modules] ************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:2 Saturday 24 May 2025 16:16:19 -0400 (0:00:00.018) 0:00:00.018 ********** [WARNING]: Platform linux on host managed-node2 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node2] TASK [Ensure facts, test variables used by role] ******************************* task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:5 Saturday 24 May 2025 16:16:20 -0400 (0:00:01.038) 0:00:01.056 ********** ok: [managed-node2] => { "ansible_facts": { "__selinux_test_facts": [ "distribution", "distribution_major_version" ] }, "changed": false } TASK [Ensure ansible_facts used by test] *************************************** task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:10 Saturday 24 May 2025 16:16:20 -0400 (0:00:00.013) 0:00:01.070 ********** ok: [managed-node2] TASK [Execute the role] ******************************************************** task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:27 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.480) 0:00:01.550 ********** redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean included: fedora.linux_system_roles.selinux for managed-node2 TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.067) 0:00:01.618 ********** included: /tmp/collections-Mf9/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-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.041) 0:00:01.660 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.036) 0:00:01.696 ********** included: /tmp/collections-Mf9/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-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.047) 0:00:01.744 ********** 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-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.433) 0:00:02.177 ********** 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-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Saturday 24 May 2025 16:16:21 -0400 (0:00:00.040) 0:00:02.218 ********** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Saturday 24 May 2025 16:16:22 -0400 (0:00:00.349) 0:00:02.567 ********** 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-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Saturday 24 May 2025 16:16:22 -0400 (0:00:00.040) 0:00:02.608 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_python_version is version('3', '<')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Saturday 24 May 2025 16:16:22 -0400 (0:00:00.036) 0:00:02.644 ********** fatal: [managed-node2]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried TASK [Cleanup modules] ********************************************************* task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:31 Saturday 24 May 2025 16:16:27 -0400 (0:00:04.920) 0:00:07.565 ********** failed: [managed-node2] (item=semodule -r linux-system-roles-selinux-test-a) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "semodule", "-r", "linux-system-roles-selinux-test-a" ], "delta": "0:00:02.918546", "end": "2025-05-24 16:16:30.494829", "item": "semodule -r linux-system-roles-selinux-test-a", "rc": 1, "start": "2025-05-24 16:16:27.576283" } STDERR: libsemanage.semanage_direct_remove_key: Unable to remove module linux-system-roles-selinux-test-a at priority 400. (No such file or directory). semodule: Failed! MSG: non-zero return code failed: [managed-node2] (item=semodule -X 500 -r linux-system-roles-selinux-test-b) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "semodule", "-X", "500", "-r", "linux-system-roles-selinux-test-b" ], "delta": "0:00:00.406914", "end": "2025-05-24 16:16:31.220409", "item": "semodule -X 500 -r linux-system-roles-selinux-test-b", "rc": 1, "start": "2025-05-24 16:16:30.813495" } STDERR: libsemanage.semanage_direct_remove_key: Unable to remove module linux-system-roles-selinux-test-b at priority 500. (No such file or directory). semodule: Failed! MSG: non-zero return code failed: [managed-node2] (item=semodule -X 600 -r linux-system-roles-selinux-test-c) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "semodule", "-X", "600", "-r", "linux-system-roles-selinux-test-c" ], "delta": "0:00:00.411541", "end": "2025-05-24 16:16:31.950146", "item": "semodule -X 600 -r linux-system-roles-selinux-test-c", "rc": 1, "start": "2025-05-24 16:16:31.538605" } STDERR: libsemanage.semanage_direct_remove_key: Unable to remove module linux-system-roles-selinux-test-c at priority 600. (No such file or directory). semodule: Failed! MSG: non-zero return code ...ignoring TASK [Report role linux-system-roles.selinux failed] *************************** task path: /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:39 Saturday 24 May 2025 16:16:31 -0400 (0:00:04.806) 0:00:12.371 ********** fatal: [managed-node2]: FAILED! => { "changed": false } MSG: linux-system-roles.selinux failed PLAY RECAP ********************************************************************* managed-node2 : ok=11 changed=0 unreachable=0 failed=1 skipped=2 rescued=1 ignored=1 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-24T20:16:27.189722+00:00Z", "host": "managed-node2", "message": "Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "start_time": "2025-05-24T20:16:22.274684+00:00Z", "task_name": "Install SELinux python3 tools", "task_path": "/tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35" }, { "ansible_version": "2.17.12", "end_time": "2025-05-24T20:16:32.032228+00:00Z", "host": "managed-node2", "message": "linux-system-roles.selinux failed", "start_time": "2025-05-24T20:16:32.001428+00:00Z", "task_name": "Report role linux-system-roles.selinux failed", "task_path": "/tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:39" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 24 May 2025 16:16:32 -0400 (0:00:00.032) 0:00:12.403 ********** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 4.92s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Cleanup modules --------------------------------------------------------- 4.81s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:31 Gathering Facts --------------------------------------------------------- 1.04s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:2 Ensure ansible_facts used by test --------------------------------------- 0.48s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:10 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.43s /tmp/collections-Mf9/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-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Execute the role -------------------------------------------------------- 0.07s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:27 fedora.linux_system_roles.selinux : Ensure SELinux packages ------------- 0.05s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages --- 0.04s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.04s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.selinux : Ensure ansible_facts used by role --- 0.04s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.04s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Report role linux-system-roles.selinux failed --------------------------- 0.03s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:39 Ensure facts, test variables used by role ------------------------------- 0.01s /tmp/collections-Mf9/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:5