# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] 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_include_vars_from_parent.yml *********************************** 1 plays in /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml PLAY [Test role include variable override] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:2 Monday 24 June 2024 06:50:05 +0000 (0:00:00.019) 0:00:00.019 *********** ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:8 Monday 24 June 2024 06:50:06 +0000 (0:00:00.918) 0:00:00.938 *********** changed: [sut -> localhost] => (item=CentOS-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS-9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211806.756508-2666-149664746440150/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS_9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.1765482-2666-49097664498823/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS.yml", "gid": 1001, "group": "jenkins", "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.3900657-2666-124336325815793/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/RedHat.yml", "gid": 1001, "group": "jenkins", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.6075952-2666-217280242474635/source", "state": "file", "uid": 1000090000 } TASK [Test setup] ************************************************************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:46 Monday 24 June 2024 06:50:07 +0000 (0:00:01.122) 0:00:02.060 *********** included: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml for sut TASK [Create temp test directory] ********************************************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml:3 Monday 24 June 2024 06:50:07 +0000 (0:00:00.011) 0:00:02.071 *********** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/sudo_m8eplo2u", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup sudoers] ********************************************************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml:10 Monday 24 June 2024 06:50:08 +0000 (0:00:00.229) 0:00:02.300 *********** changed: [sut] => { "changed": true, "checksum": "e683ad5e5d8d7112d14924c11c98be7bf2ef4918", "dest": "/var/tmp/sudo_m8eplo2u/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: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml:19 Monday 24 June 2024 06:50:08 +0000 (0:00:00.288) 0:00:02.589 *********** changed: [sut] => { "changed": true, "checksum": null, "dest": "/var/tmp/sudo_m8eplo2u/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 [Include role] ************************************************************ task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/tasks/main.yml:4 Monday 24 June 2024 06:50:08 +0000 (0:00:00.286) 0:00:02.875 *********** TASK [linux-system-roles.sudo : Set version specific variables] **************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:2 Monday 24 June 2024 06:50:08 +0000 (0:00:00.018) 0:00:02.893 *********** included: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml for sut TASK [linux-system-roles.sudo : Ensure ansible_facts used by role] ************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:2 Monday 24 June 2024 06:50:08 +0000 (0:00:00.015) 0:00:02.908 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.sudo : Check if system is ostree] ********************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:11 Monday 24 June 2024 06:50:08 +0000 (0:00:00.011) 0:00:02.919 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.sudo : Set flag to indicate system is ostree] ********* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:16 Monday 24 June 2024 06:50:08 +0000 (0:00:00.189) 0:00:03.109 *********** ok: [sut] => { "ansible_facts": { "__sudo_is_ostree": false }, "changed": false } TASK [linux-system-roles.sudo : Set platform/version specific variables] ******* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:20 Monday 24 June 2024 06:50:08 +0000 (0:00:00.012) 0:00:03.122 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.sudo : Ensure sudo is installed] ********************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:5 Monday 24 June 2024 06:50:08 +0000 (0:00:00.022) 0:00:03.144 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: sudo TASK [linux-system-roles.sudo : Set include directories variable] ************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:12 Monday 24 June 2024 06:50:11 +0000 (0:00:02.151) 0:00:05.296 *********** ok: [sut] => { "ansible_facts": { "sudo_include_dirs": [ "/etc/sudoers.d" ] }, "changed": false } TASK [linux-system-roles.sudo : Set sudoer file paths variable] **************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:18 Monday 24 June 2024 06:50:11 +0000 (0:00:00.011) 0:00:05.307 *********** ok: [sut] => { "ansible_facts": { "sudo_file_paths": [ "/etc/sudoers" ] }, "changed": false } TASK [linux-system-roles.sudo : Ensure include directories are created] ******** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:24 Monday 24 June 2024 06:50:11 +0000 (0:00:00.011) 0:00:05.318 *********** ok: [sut] => (item=/etc/sudoers.d) => { "ansible_loop_var": "item", "changed": false, "gid": 0, "group": "root", "item": "/etc/sudoers.d", "mode": "0750", "owner": "root", "path": "/etc/sudoers.d", "secontext": "system_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.sudo : Ensure sudoers include files are configured] *** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:34 Monday 24 June 2024 06:50:11 +0000 (0:00:00.304) 0:00:05.622 *********** skipping: [sut] => (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": false, "item": { "defaults": [ "!visiblepw", "always_set_home", "match_group_by_gid", "always_query_group_plugin", "env_reset", { "secure_path": [ "/sbin", "/bin", "/usr/sbin", "/usr/bin" ] }, { "env_keep": [ "COLORS", "DISPLAY", "HOSTNAME", "HISTSIZE", "KDEDIR", "LS_COLORS", "MAIL", "PS1", "PS2", "QTDIR", "USERNAME", "LANG", "LC_ADDRESS", "LC_CTYPE", "LC_COLLATE", "LC_IDENTIFICATION", "LC_MEASUREMENT", "LC_MESSAGES", "LC_MONETARY", "LC_NAME", "LC_NUMERIC", "LC_PAPER", "LC_TELEPHONE", "LC_TIME", "LC_ALL", "LANGUAGE", "LINGUAS", "_XKB_CHARSET", "XAUTHORITY" ] } ], "include_directories": [ "/etc/sudoers.d" ], "path": "/etc/sudoers", "user_specifications": [ { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "root" ] }, { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "%wheel" ] } ] }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.sudo : Ensure /etc/sudoers is configured] ************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:47 Monday 24 June 2024 06:50:11 +0000 (0:00:00.018) 0:00:05.641 *********** changed: [sut] => (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": true, "checksum": "fc5c161eed42bf4d12f49c476bfc46e8e56097d2", "dest": "/etc/sudoers", "gid": 0, "group": "root", "item": { "defaults": [ "!visiblepw", "always_set_home", "match_group_by_gid", "always_query_group_plugin", "env_reset", { "secure_path": [ "/sbin", "/bin", "/usr/sbin", "/usr/bin" ] }, { "env_keep": [ "COLORS", "DISPLAY", "HOSTNAME", "HISTSIZE", "KDEDIR", "LS_COLORS", "MAIL", "PS1", "PS2", "QTDIR", "USERNAME", "LANG", "LC_ADDRESS", "LC_CTYPE", "LC_COLLATE", "LC_IDENTIFICATION", "LC_MEASUREMENT", "LC_MESSAGES", "LC_MONETARY", "LC_NAME", "LC_NUMERIC", "LC_PAPER", "LC_TELEPHONE", "LC_TIME", "LC_ALL", "LANGUAGE", "LINGUAS", "_XKB_CHARSET", "XAUTHORITY" ] } ], "include_directories": [ "/etc/sudoers.d" ], "path": "/etc/sudoers", "user_specifications": [ { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "root" ] }, { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "%wheel" ] } ] }, "md5sum": "10930d4d72a2804fdbc804a21a30f856", "mode": "0440", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 813, "src": "/root/.ansible/tmp/ansible-tmp-1719211811.4787278-2786-50150248738557/source", "state": "file", "uid": 0 } TASK [linux-system-roles.sudo : Search for sudoers files in included directories] *** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:67 Monday 24 June 2024 06:50:12 +0000 (0:00:00.640) 0:00:06.282 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.sudo : Set unauthorized included sudoers files variable] *** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:75 Monday 24 June 2024 06:50:12 +0000 (0:00:00.009) 0:00:06.292 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.sudo : Remove unauthorized included sudoers files] **** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:81 Monday 24 June 2024 06:50:12 +0000 (0:00:00.009) 0:00:06.302 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [caller : Assert variable not overridden] ********************************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/tasks/main.yml:8 Monday 24 June 2024 06:50:12 +0000 (0:00:00.045) 0:00:06.348 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test cleanup] ************************************************************ task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:56 Monday 24 June 2024 06:50:12 +0000 (0:00:00.024) 0:00:06.372 *********** included: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml for sut TASK [Restore sudoers] ********************************************************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml:3 Monday 24 June 2024 06:50:12 +0000 (0:00:00.011) 0:00:06.384 *********** changed: [sut] => { "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_m8eplo2u/sudoers", "state": "file", "uid": 0 } TASK [Restore sudoers.d] ******************************************************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml:12 Monday 24 June 2024 06:50:12 +0000 (0:00:00.416) 0:00:06.800 *********** changed: [sut] => { "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_m8eplo2u/sudoers.d", "state": "directory", "uid": 0 } TASK [Clean up temp directory] ************************************************* task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml:21 Monday 24 June 2024 06:50:12 +0000 (0:00:00.299) 0:00:07.100 *********** changed: [sut] => { "changed": true, "path": "/var/tmp/sudo_m8eplo2u", "state": "absent" } TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:59 Monday 24 June 2024 06:50:13 +0000 (0:00:00.206) 0:00:07.306 *********** changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS-9.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211806.756508-2666-149664746440150/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS-9.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211806.756508-2666-149664746440150/source', '_original_basename': 'tmp6n5i6xii', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'CentOS-9', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS-9.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmp6n5i6xii", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS-9.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211806.756508-2666-149664746440150/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211806.756508-2666-149664746440150/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS-9.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS_9.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.1765482-2666-49097664498823/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS_9.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.1765482-2666-49097664498823/source', '_original_basename': 'tmp8ys6_w0g', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'CentOS_9', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS_9.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmp8ys6_w0g", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS_9.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.1765482-2666-49097664498823/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.1765482-2666-49097664498823/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS_9.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.3900657-2666-124336325815793/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.3900657-2666-124336325815793/source', '_original_basename': 'tmp8kjqymft', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'CentOS', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmp8kjqymft", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.3900657-2666-124336325815793/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.3900657-2666-124336325815793/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/CentOS.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/RedHat.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.6075952-2666-217280242474635/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/RedHat.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.6075952-2666-217280242474635/source', '_original_basename': 'tmpcxynnku8', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'RedHat', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/RedHat.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmpcxynnku8", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/RedHat.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.6075952-2666-217280242474635/source", "unsafe_writes": false, "validate": null } }, "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1719211807.6075952-2666-217280242474635/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/vars/RedHat.yml", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=20 changed=9 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Monday 24 June 2024 06:50:13 +0000 (0:00:00.507) 0:00:07.814 *********** =============================================================================== linux-system-roles.sudo : Ensure sudo is installed ---------------------- 2.15s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:5 Create var file in caller that can override the one in called role ------ 1.12s /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:8 ----- Gathering Facts --------------------------------------------------------- 0.92s /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:2 ----- linux-system-roles.sudo : Ensure /etc/sudoers is configured ------------- 0.64s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:47 Cleanup ----------------------------------------------------------------- 0.51s /WORKDIR/git-weekly-ciuizje1hd/tests/tests_include_vars_from_parent.yml:59 ---- Restore sudoers --------------------------------------------------------- 0.42s /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml:3 ---------------------- linux-system-roles.sudo : Ensure include directories are created -------- 0.30s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:24 Restore sudoers.d ------------------------------------------------------- 0.30s /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml:12 --------------------- Backup sudoers ---------------------------------------------------------- 0.29s /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml:10 ----------------------- Backup sudoers.d -------------------------------------------------------- 0.29s /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml:19 ----------------------- Create temp test directory ---------------------------------------------- 0.23s /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/setup.yml:3 ------------------------ Clean up temp directory ------------------------------------------------- 0.21s /WORKDIR/git-weekly-ciuizje1hd/tests/tasks/cleanup.yml:21 --------------------- linux-system-roles.sudo : Check if system is ostree --------------------- 0.19s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:11 linux-system-roles.sudo : Remove unauthorized included sudoers files ---- 0.05s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:81 caller : Assert variable not overridden --------------------------------- 0.02s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/tasks/main.yml:8 ------------ linux-system-roles.sudo : Set platform/version specific variables ------- 0.02s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:20 linux-system-roles.sudo : Ensure sudoers include files are configured --- 0.02s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:34 Include role ------------------------------------------------------------ 0.02s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/caller/tasks/main.yml:4 ------------ linux-system-roles.sudo : Set version specific variables ---------------- 0.02s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/main.yml:2 linux-system-roles.sudo : Set flag to indicate system is ostree --------- 0.01s /WORKDIR/git-weekly-ciuizje1hd/tests/roles/linux-system-roles.sudo/tasks/set_vars.yml:16 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---