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_large_configuration.yml **************************************** 1 plays in /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_large_configuration.yml PLAY [Test for Sudo - large configuration] ************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_large_configuration.yml:2 Thursday 22 August 2024 11:05:14 -0400 (0:00:00.018) 0:00:00.018 ******* ok: [managed_node2] META: ran handlers TASK [Test setup] ************************************************************** task path: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_large_configuration.yml:7 Thursday 22 August 2024 11:05:16 -0400 (0:00:01.314) 0:00:01.333 ******* included: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml for managed_node2 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:16 -0400 (0:00:00.028) 0:00:01.362 ******* changed: [managed_node2] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/sudo_mlulq_iv", "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:16 -0400 (0:00:00.640) 0:00:02.002 ******* changed: [managed_node2] => { "changed": true, "checksum": "e683ad5e5d8d7112d14924c11c98be7bf2ef4918", "dest": "/var/tmp/sudo_mlulq_iv/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:17 -0400 (0:00:00.830) 0:00:02.833 ******* changed: [managed_node2] => { "changed": true, "checksum": null, "dest": "/var/tmp/sudo_mlulq_iv/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_large_configuration.yml:10 Thursday 22 August 2024 11:05:18 -0400 (0:00:00.471) 0:00:03.304 ******* 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:18 -0400 (0:00:00.053) 0:00:03.358 ******* included: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml for managed_node2 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:18 -0400 (0:00:00.028) 0:00:03.387 ******* skipping: [managed_node2] => { "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:18 -0400 (0:00:00.038) 0:00:03.425 ******* ok: [managed_node2] => { "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:18 -0400 (0:00:00.441) 0:00:03.866 ******* ok: [managed_node2] => { "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:18 -0400 (0:00:00.041) 0:00:03.908 ******* ok: [managed_node2] => { "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:19 -0400 (0:00:00.402) 0:00:04.310 ******* ok: [managed_node2] => { "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:19 -0400 (0:00:00.037) 0:00:04.348 ******* skipping: [managed_node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (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:19 -0400 (0:00:00.075) 0:00:04.424 ******* ok: [managed_node2] => { "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:19 -0400 (0:00:00.559) 0:00:04.983 ******* fatal: [managed_node2]: 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_large_configuration.yml:180 Thursday 22 August 2024 11:05:19 -0400 (0:00:00.056) 0:00:05.039 ******* included: /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml for managed_node2 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:19 -0400 (0:00:00.027) 0:00:05.067 ******* 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_mlulq_iv/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:20 -0400 (0:00:00.402) 0:00:05.469 ******* 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_mlulq_iv/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:20 -0400 (0:00:00.472) 0:00:05.942 ******* changed: [managed_node2] => { "changed": true, "path": "/var/tmp/sudo_mlulq_iv", "state": "absent" } PLAY RECAP ********************************************************************* managed_node2 : ok=15 changed=6 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Thursday 22 August 2024 11:05:21 -0400 (0:00:00.530) 0:00:06.472 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 1.31s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_large_configuration.yml:2 Backup sudoers ---------------------------------------------------------- 0.83s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:10 Create temp test directory ---------------------------------------------- 0.64s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:3 fedora.linux_system_roles.sudo : Scan sudoers --------------------------- 0.56s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:5 Clean up temp directory ------------------------------------------------- 0.53s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:21 Restore sudoers.d ------------------------------------------------------- 0.47s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:12 Backup sudoers.d -------------------------------------------------------- 0.47s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/setup.yml:19 fedora.linux_system_roles.sudo : Check if system is ostree -------------- 0.44s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:10 Restore sudoers --------------------------------------------------------- 0.40s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tasks/cleanup.yml:3 fedora.linux_system_roles.sudo : Check if transactional-update exists in /sbin --- 0.40s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:22 fedora.linux_system_roles.sudo : Set platform/version specific variables --- 0.08s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:31 fedora.linux_system_roles.sudo : Compare -------------------------------- 0.06s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:12 Run the role ------------------------------------------------------------ 0.05s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_large_configuration.yml:10 fedora.linux_system_roles.sudo : Set flag to indicate system is ostree --- 0.04s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:15 fedora.linux_system_roles.sudo : Ensure ansible_facts used by role ------ 0.04s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:2 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_large_configuration.yml:7 fedora.linux_system_roles.sudo : Set version specific variables --------- 0.03s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:2 Test cleanup ------------------------------------------------------------ 0.03s /tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_large_configuration.yml:180