# 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-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml PLAY [Test role include variable override] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml:2 Wednesday 19 June 2024 14:07:54 +0000 (0:00:00.012) 0:00:00.012 ******** ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml:15 Wednesday 19 June 2024 14:07:55 +0000 (0:00:00.727) 0:00:00.739 ******** changed: [sut -> localhost] => (item=CentOS-8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS-8.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.4533546-291-112777040190667/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS_8.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.8158398-291-203339344700469/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-module_workznm8yrr4/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-1718806076.03203-291-2761005203224/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-module_workznm8yrr4/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-1718806076.2517512-291-180125595998422/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/caller/tasks/main.yml:4 Wednesday 19 June 2024 14:07:56 +0000 (0:00:01.032) 0:00:01.771 ******** TASK [linux-system-roles.snapshot : Set platform/version specific variables] *** task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/main.yml:3 Wednesday 19 June 2024 14:07:56 +0000 (0:00:00.025) 0:00:01.796 ******** included: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml for sut TASK [linux-system-roles.snapshot : Ensure ansible_facts used by role] ********* task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:2 Wednesday 19 June 2024 14:07:56 +0000 (0:00:00.016) 0:00:01.813 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.snapshot : Check if system is ostree] ***************** task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:11 Wednesday 19 June 2024 14:07:56 +0000 (0:00:00.015) 0:00:01.828 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.snapshot : Set flag to indicate system is ostree] ***** task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:16 Wednesday 19 June 2024 14:07:56 +0000 (0:00:00.196) 0:00:02.025 ******** ok: [sut] => { "ansible_facts": { "__snapshot_is_ostree": false }, "changed": false } TASK [linux-system-roles.snapshot : Set platform/version specific variables] *** task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:20 Wednesday 19 June 2024 14:07:56 +0000 (0:00:00.012) 0:00:02.037 ******** 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" } ok: [sut] => (item=CentOS_8.yml) => { "ansible_facts": { "__snapshot_packages": [ "lvm2", "util-linux" ], "__snapshot_python": "/usr/libexec/platform-python" }, "ansible_included_var_files": [ "/WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [sut] => (item=CentOS_8.yml) => { "ansible_facts": { "__snapshot_packages": [ "lvm2", "util-linux" ], "__snapshot_python": "/usr/libexec/platform-python" }, "ansible_included_var_files": [ "/WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [linux-system-roles.snapshot : Ensure required packages are installed] **** task path: /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/main.yml:6 Wednesday 19 June 2024 14:07:56 +0000 (0:00:00.025) 0:00:02.062 ******** fatal: [sut]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml:60 Wednesday 19 June 2024 14:07:57 +0000 (0:00:01.027) 0:00:03.090 ******** changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS-8.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.4533546-291-112777040190667/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-module_workznm8yrr4/tests/roles/caller/vars/CentOS-8.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.4533546-291-112777040190667/source', '_original_basename': 'tmp7efxg7b4', '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-8', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS-8.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmp7efxg7b4", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS-8.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-1718806075.4533546-291-112777040190667/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.4533546-291-112777040190667/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS-8.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS_8.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.8158398-291-203339344700469/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-module_workznm8yrr4/tests/roles/caller/vars/CentOS_8.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.8158398-291-203339344700469/source', '_original_basename': 'tmpmkibpd0v', '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_8', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS_8.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmpmkibpd0v", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS_8.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-1718806075.8158398-291-203339344700469/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1718806075.8158398-291-203339344700469/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS_8.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806076.03203-291-2761005203224/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-module_workznm8yrr4/tests/roles/caller/vars/CentOS.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806076.03203-291-2761005203224/source', '_original_basename': 'tmpik_nh8vc', '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-module_workznm8yrr4/tests/roles/caller/vars/CentOS.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmpik_nh8vc", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-module_workznm8yrr4/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-1718806076.03203-291-2761005203224/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1718806076.03203-291-2761005203224/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/CentOS.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/RedHat.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806076.2517512-291-180125595998422/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-module_workznm8yrr4/tests/roles/caller/vars/RedHat.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1718806076.2517512-291-180125595998422/source', '_original_basename': 'tmp098hi1e5', '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-module_workznm8yrr4/tests/roles/caller/vars/RedHat.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmp098hi1e5", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-module_workznm8yrr4/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-1718806076.2517512-291-180125595998422/source", "unsafe_writes": false, "validate": null } }, "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1718806076.2517512-291-180125595998422/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-module_workznm8yrr4/tests/roles/caller/vars/RedHat.yml", "state": "absent" } to retry, use: --limit @/tmp/tests_include_vars_from_parent.retry PLAY RECAP ********************************************************************* sut : ok=7 changed=2 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0 Wednesday 19 June 2024 14:07:58 +0000 (0:00:00.486) 0:00:03.577 ******** =============================================================================== Create var file in caller that can override the one in called role ------ 1.03s /WORKDIR/git-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml:15 -- linux-system-roles.snapshot : Ensure required packages are installed ---- 1.03s /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/main.yml:6 Gathering Facts --------------------------------------------------------- 0.73s /WORKDIR/git-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml:2 --- Cleanup ----------------------------------------------------------------- 0.49s /WORKDIR/git-module_workznm8yrr4/tests/tests_include_vars_from_parent.yml:60 -- linux-system-roles.snapshot : Check if system is ostree ----------------- 0.20s /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:11 linux-system-roles.snapshot : Set platform/version specific variables --- 0.03s /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:20 Include role ------------------------------------------------------------ 0.03s /WORKDIR/git-module_workznm8yrr4/tests/roles/caller/tasks/main.yml:4 ---------- linux-system-roles.snapshot : Set platform/version specific variables --- 0.02s /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/main.yml:3 linux-system-roles.snapshot : Ensure ansible_facts used by role --------- 0.02s /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:2 linux-system-roles.snapshot : Set flag to indicate system is ostree ----- 0.01s /WORKDIR/git-module_workznm8yrr4/tests/roles/linux-system-roles.snapshot/tasks/set_vars.yml:16 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---