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_role_applied.yml *********************************************** 1 plays in /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml PLAY [Test rewrite default sudoers and remove unauthorized files] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:2 ok: [managed-node2] META: ran handlers TASK [Test setup] ************************************************************** task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:7 included: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml for managed-node2 TASK [Create temp test directory] ********************************************** task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:3 changed: [managed-node2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/sudo_FjtE49", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Backup sudoers] ********************************************************** task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:10 changed: [managed-node2] => {"changed": true, "checksum": "e683ad5e5d8d7112d14924c11c98be7bf2ef4918", "dest": "/var/tmp/sudo_FjtE49/sudoers", "gid": 0, "group": "root", "md5sum": "1b134d95a4618029ff962a63b021e1ca", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4328, "src": "/etc/sudoers", "state": "file", "uid": 0} TASK [Backup sudoers.d] ******************************************************** task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:19 changed: [managed-node2] => {"changed": true, "checksum": null, "dest": "/var/tmp/sudo_FjtE49/sudoers.d", "gid": 0, "group": "root", "md5sum": null, "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "src": "/etc/sudoers.d", "state": "directory", "uid": 0} TASK [Run the role] ************************************************************ task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:10 ERROR! the role 'fedora.linux_system_roles.sudo' was not found in /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo The error appears to be in '/tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml': line 12, 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.sudo ^ here TASK [Test cleanup] ************************************************************ task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:24 included: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml for managed-node2 TASK [Restore sudoers] ********************************************************* task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:3 changed: [managed-node2] => {"changed": true, "checksum": "e683ad5e5d8d7112d14924c11c98be7bf2ef4918", "dest": "/etc/sudoers", "gid": 0, "group": "root", "md5sum": "1b134d95a4618029ff962a63b021e1ca", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 4328, "src": "/var/tmp/sudo_FjtE49/sudoers", "state": "file", "uid": 0} TASK [Restore sudoers.d] ******************************************************* task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:12 changed: [managed-node2] => {"changed": true, "checksum": null, "dest": "/etc/sudoers.d/sudoers.d", "gid": 0, "group": "root", "md5sum": null, "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "src": "/var/tmp/sudo_FjtE49/sudoers.d", "state": "directory", "uid": 0} TASK [Clean up temp directory] ************************************************* task path: /tmp/collections-Z2t/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:21 changed: [managed-node2] => {"changed": true, "path": "/var/tmp/sudo_FjtE49", "state": "absent"} PLAY RECAP ********************************************************************* managed-node2 : ok=9 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0