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_all_transitions.yml ******************************************** 1 plays in /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 ok: [managed-node2] META: ran handlers TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 ok: [managed-node2] => {"changed": false, "stat": {"exists": false}} META: end_host conditional evaluated to false, continuing execution for managed-node2 TASK [Save config] ************************************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:26 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml for managed-node2 TASK [Backup original /etc/selinux/config] ************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 changed: [managed-node2] => {"changed": true, "checksum": "fe4ed0aa93618472e1004b6f68ae1b0733485fc5", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "ff8d2663b88f1a20c8489fdf152e6b31", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 542, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [Test all the possible state transitions] ********************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:29 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 TASK [Display transition name] ************************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml:2 ok: [managed-node2] => { "msg": "testing transition permissive -> permissive" } TASK [Setup the initial state] ************************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml:6 included: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml for managed-node2 TASK [Call SELinux role] ******************************************************* task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:4 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/selinux_apply_reboot.yml': line 6, column 15, 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 [Handle errors] *********************************************************** task path: /tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:9 fatal: [managed-node2]: FAILED! => {"msg": "The conditional check 'not selinux_reboot_required' failed. The error was: error while evaluating conditional (not selinux_reboot_required): 'selinux_reboot_required' is undefined\n\nThe error appears to be in '/tmp/collections-CCH/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml': line 9, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # Fail if failed for a different reason than selinux_reboot_required.\n - name: Handle errors\n ^ here\n"} PLAY RECAP ********************************************************************* managed-node2 : ok=15 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0