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 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-oPl/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-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:2 Tuesday 20 August 2024 06:27:22 -0400 (0:00:00.047) 0:00:00.047 ******** ok: [managed_node2] META: ran handlers TASK [Test setup] ************************************************************** task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:7 Tuesday 20 August 2024 06:27:23 -0400 (0:00:01.045) 0:00:01.093 ******** included: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml for managed_node2 TASK [Create temp test directory] ********************************************** task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:3 Tuesday 20 August 2024 06:27:23 -0400 (0:00:00.055) 0:00:01.149 ******** changed: [managed_node2] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/sudo_2qkybj2c", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup sudoers] ********************************************************** task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:10 Tuesday 20 August 2024 06:27:24 -0400 (0:00:00.577) 0:00:01.726 ******** changed: [managed_node2] => { "changed": true, "checksum": "e683ad5e5d8d7112d14924c11c98be7bf2ef4918", "dest": "/var/tmp/sudo_2qkybj2c/sudoers", "gid": 0, "group": "root", "md5sum": "1b134d95a4618029ff962a63b021e1ca", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 4328, "src": "/etc/sudoers", "state": "file", "uid": 0 } TASK [Backup sudoers.d] ******************************************************** task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:19 Tuesday 20 August 2024 06:27:24 -0400 (0:00:00.475) 0:00:02.202 ******** changed: [managed_node2] => { "changed": true, "checksum": null, "dest": "/var/tmp/sudo_2qkybj2c/sudoers.d", "gid": 0, "group": "root", "md5sum": null, "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 23, "src": "/etc/sudoers.d", "state": "directory", "uid": 0 } TASK [Run the role] ************************************************************ task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:10 Tuesday 20 August 2024 06:27:25 -0400 (0:00:00.356) 0:00:02.559 ******** ERROR! couldn't resolve module/action 'ansible.utils.fact_diff'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml': line 11, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Compare ^ here TASK [Test cleanup] ************************************************************ task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:24 Tuesday 20 August 2024 06:27:25 -0400 (0:00:00.038) 0:00:02.598 ******** included: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml for managed_node2 TASK [Restore sudoers] ********************************************************* task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:3 Tuesday 20 August 2024 06:27:25 -0400 (0:00:00.028) 0:00:02.626 ******** ok: [managed_node2] => { "changed": false, "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_2qkybj2c/sudoers", "state": "file", "uid": 0 } TASK [Restore sudoers.d] ******************************************************* task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:12 Tuesday 20 August 2024 06:27:25 -0400 (0:00:00.433) 0:00:03.060 ******** 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:user_tmp_t:s0", "size": 23, "src": "/var/tmp/sudo_2qkybj2c/sudoers.d", "state": "directory", "uid": 0 } TASK [Clean up temp directory] ************************************************* task path: /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:21 Tuesday 20 August 2024 06:27:25 -0400 (0:00:00.341) 0:00:03.401 ******** changed: [managed_node2] => { "changed": true, "path": "/var/tmp/sudo_2qkybj2c", "state": "absent" } PLAY RECAP ********************************************************************* managed_node2 : ok=9 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 20 August 2024 06:27:26 -0400 (0:00:00.419) 0:00:03.821 ******** =============================================================================== Gathering Facts --------------------------------------------------------- 1.05s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:2 Create temp test directory ---------------------------------------------- 0.58s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:3 Backup sudoers ---------------------------------------------------------- 0.48s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:10 Restore sudoers --------------------------------------------------------- 0.43s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:3 Clean up temp directory ------------------------------------------------- 0.42s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:21 Backup sudoers.d -------------------------------------------------------- 0.36s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:19 Restore sudoers.d ------------------------------------------------------- 0.34s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:12 Test setup -------------------------------------------------------------- 0.06s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:7 Run the role ------------------------------------------------------------ 0.04s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:10 Test cleanup ------------------------------------------------------------ 0.03s /tmp/collections-oPl/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_role_applied.yml:24