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_multiple_sudoers.yml ******************************************* 1 plays in /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml PLAY [Test multiple sudoers] *************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:2 Thursday 22 August 2024 11:05:17 -0400 (0:00:00.038) 0:00:00.038 ******* ok: [managed_node3] META: ran handlers TASK [Test setup] ************************************************************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:7 Thursday 22 August 2024 11:05:18 -0400 (0:00:01.491) 0:00:01.530 ******* included: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml for managed_node3 TASK [Create temp test directory] ********************************************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:3 Thursday 22 August 2024 11:05:18 -0400 (0:00:00.030) 0:00:01.561 ******* changed: [managed_node3] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/sudo_js01uglo", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup sudoers] ********************************************************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:10 Thursday 22 August 2024 11:05:19 -0400 (0:00:00.460) 0:00:02.021 ******* changed: [managed_node3] => { "changed": true, "checksum": "e683ad5e5d8d7112d14924c11c98be7bf2ef4918", "dest": "/var/tmp/sudo_js01uglo/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-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:19 Thursday 22 August 2024 11:05:19 -0400 (0:00:00.665) 0:00:02.686 ******* changed: [managed_node3] => { "changed": true, "checksum": null, "dest": "/var/tmp/sudo_js01uglo/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-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:10 Thursday 22 August 2024 11:05:20 -0400 (0:00:00.434) 0:00:03.121 ******* TASK [fedora.linux_system_roles.sudo : Set version specific variables] ********* task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:2 Thursday 22 August 2024 11:05:20 -0400 (0:00:00.067) 0:00:03.188 ******* included: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.sudo : Ensure ansible_facts used by role] ****** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:2 Thursday 22 August 2024 11:05:20 -0400 (0:00:00.048) 0:00:03.236 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.sudo : Check if system is ostree] ************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:10 Thursday 22 August 2024 11:05:20 -0400 (0:00:00.052) 0:00:03.289 ******* ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.sudo : Set flag to indicate system is ostree] *** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:15 Thursday 22 August 2024 11:05:20 -0400 (0:00:00.490) 0:00:03.780 ******* ok: [managed_node3] => { "ansible_facts": { "__sudo_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.sudo : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:22 Thursday 22 August 2024 11:05:21 -0400 (0:00:00.046) 0:00:03.827 ******* ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.sudo : Set flag if transactional-update exists] *** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:27 Thursday 22 August 2024 11:05:21 -0400 (0:00:00.366) 0:00:04.193 ******* ok: [managed_node3] => { "ansible_facts": { "__sudo_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.sudo : Set platform/version specific variables] *** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:31 Thursday 22 August 2024 11:05:21 -0400 (0:00:00.040) 0:00:04.234 ******* skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.sudo : Scan sudoers] *************************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:5 Thursday 22 August 2024 11:05:21 -0400 (0:00:00.053) 0:00:04.287 ******* ok: [managed_node3] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.sudo : Compare] ******************************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:12 Thursday 22 August 2024 11:05:22 -0400 (0:00:00.616) 0:00:04.904 ******* fatal: [managed_node3]: FAILED! => {} MSG: template error while templating string: No filter named 'ansible.utils.remove_keys'.. String: {{ ansible_facts['sudoers'].sudoers_files | ansible.utils.remove_keys(target=['include_files']) == sudo_sudoers_files }} TASK [Test cleanup] ************************************************************ task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:132 Thursday 22 August 2024 11:05:22 -0400 (0:00:00.063) 0:00:04.967 ******* included: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml for managed_node3 TASK [Restore sudoers] ********************************************************* task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:3 Thursday 22 August 2024 11:05:22 -0400 (0:00:00.059) 0:00:05.026 ******* changed: [managed_node3] => { "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_js01uglo/sudoers", "state": "file", "uid": 0 } TASK [Restore sudoers.d] ******************************************************* task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:12 Thursday 22 August 2024 11:05:22 -0400 (0:00:00.596) 0:00:05.623 ******* changed: [managed_node3] => { "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_js01uglo/sudoers.d", "state": "directory", "uid": 0 } TASK [Clean up temp directory] ************************************************* task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:21 Thursday 22 August 2024 11:05:23 -0400 (0:00:00.417) 0:00:06.040 ******* changed: [managed_node3] => { "changed": true, "path": "/var/tmp/sudo_js01uglo", "state": "absent" } PLAY RECAP ********************************************************************* managed_node3 : ok=15 changed=6 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Thursday 22 August 2024 11:05:23 -0400 (0:00:00.635) 0:00:06.675 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 1.49s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:2 Backup sudoers ---------------------------------------------------------- 0.67s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:10 Clean up temp directory ------------------------------------------------- 0.64s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:21 fedora.linux_system_roles.sudo : Scan sudoers --------------------------- 0.62s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:5 Restore sudoers --------------------------------------------------------- 0.60s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:3 fedora.linux_system_roles.sudo : Check if system is ostree -------------- 0.49s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:10 Create temp test directory ---------------------------------------------- 0.46s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:3 Backup sudoers.d -------------------------------------------------------- 0.43s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:19 Restore sudoers.d ------------------------------------------------------- 0.42s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:12 fedora.linux_system_roles.sudo : Check if transactional-update exists in /sbin --- 0.37s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:22 Run the role ------------------------------------------------------------ 0.07s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:10 fedora.linux_system_roles.sudo : Compare -------------------------------- 0.06s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:12 Test cleanup ------------------------------------------------------------ 0.06s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:132 fedora.linux_system_roles.sudo : Set platform/version specific variables --- 0.05s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:31 fedora.linux_system_roles.sudo : Ensure ansible_facts used by role ------ 0.05s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:2 fedora.linux_system_roles.sudo : Set version specific variables --------- 0.05s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:2 fedora.linux_system_roles.sudo : Set flag to indicate system is ostree --- 0.05s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:15 fedora.linux_system_roles.sudo : Set flag if transactional-update exists --- 0.04s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:27 Test setup -------------------------------------------------------------- 0.03s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_multiple_sudoers.yml:7