ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file 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 '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_selinux_modules.yml ******************************************** 1 plays in /tmp/collections-CCH/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-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:2 ok: [managed-node1] META: ran handlers TASK [Ensure facts, test variables used by role] ******************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:5 ok: [managed-node1] => {"ansible_facts": {"__selinux_test_facts": ["distribution", "distribution_major_version"]}, "changed": false} TASK [Ensure ansible_facts used by test] *************************************** task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:10 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Execute the role] ******************************************************** task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:27 ERROR! the role 'fedora.linux_system_roles.selinux' was not found in /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux The error appears to be in '/tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml': line 29, column 19, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.selinux ^ here TASK [Cleanup modules] ********************************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:31 failed: [managed-node1] (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:03.958382", "end": "2024-09-24 15:15:52.952880", "item": "semodule -r linux-system-roles-selinux-test-a", "msg": "non-zero return code", "rc": 1, "start": "2024-09-24 15:15:48.994498", "stderr": "libsemanage.semanage_direct_remove_key: Unable to remove module linux-system-roles-selinux-test-a at priority 400. (No such file or directory).\nsemodule: Failed!", "stderr_lines": ["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!"], "stdout": "", "stdout_lines": []} failed: [managed-node1] (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.087928", "end": "2024-09-24 15:15:53.318166", "item": "semodule -X 500 -r linux-system-roles-selinux-test-b", "msg": "non-zero return code", "rc": 1, "start": "2024-09-24 15:15:53.230238", "stderr": "libsemanage.semanage_direct_remove_key: Unable to remove module linux-system-roles-selinux-test-b at priority 500. (No such file or directory).\nsemodule: Failed!", "stderr_lines": ["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!"], "stdout": "", "stdout_lines": []} failed: [managed-node1] (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.086023", "end": "2024-09-24 15:15:53.884137", "item": "semodule -X 600 -r linux-system-roles-selinux-test-c", "msg": "non-zero return code", "rc": 1, "start": "2024-09-24 15:15:53.798114", "stderr": "libsemanage.semanage_direct_remove_key: Unable to remove module linux-system-roles-selinux-test-c at priority 600. (No such file or directory).\nsemodule: Failed!", "stderr_lines": ["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!"], "stdout": "", "stdout_lines": []} ...ignoring TASK [Report role linux-system-roles.selinux failed] *************************** task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_modules.yml:39 fatal: [managed-node1]: FAILED! => {"changed": false, "msg": "linux-system-roles.selinux failed"} PLAY RECAP ********************************************************************* managed-node1 : ok=3 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=1