# 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-cidfw1zqjr/tests/tests_include_vars_from_parent.yml PLAY [Test role variable override] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/tests_include_vars_from_parent.yml:2 Saturday 09 December 2023 01:59:48 +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-weekly-cidfw1zqjr/tests/tests_include_vars_from_parent.yml:6 Saturday 09 December 2023 01:59:49 +0000 (0:00:00.742) 0:00:00.754 ***** changed: [sut -> localhost] => (item=CentOS-7.9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/vars/CentOS-7.9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-7.9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702087189.5162406-1477-32015285378324/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS-7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/vars/CentOS-7.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702087189.979872-1477-235541696054381/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_7.9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/vars/CentOS_7.9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_7.9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702087190.3478367-1477-205420483307984/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/vars/CentOS_7.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702087190.6661072-1477-277122256463399/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-cidfw1zqjr/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-1702087190.918924-1477-120170859597373/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-cidfw1zqjr/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-1702087191.1731427-1477-101036503435830/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/tasks/main.yml:4 Saturday 09 December 2023 01:59:51 +0000 (0:00:01.907) 0:00:02.662 ***** TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:3 Saturday 09 December 2023 01:59:51 +0000 (0:00:00.014) 0:00:02.676 ***** included: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/set_vars.yml for sut TASK [linux-system-roles.template : Ensure ansible_facts used by role] ********* task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/set_vars.yml:2 Saturday 09 December 2023 01:59:51 +0000 (0:00:00.022) 0:00:02.699 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/set_vars.yml:8 Saturday 09 December 2023 01:59:51 +0000 (0:00:00.011) 0:00:02.710 ***** 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_7.yml) => { "ansible_facts": { "__template_packages": [], "__template_services": [] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.template : Ensure required packages are installed] **** task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:7 Saturday 09 December 2023 01:59:51 +0000 (0:00:00.029) 0:00:02.740 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } lsrpackages: TASK [linux-system-roles.template : Ensure required services are enabled and started] *** task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:12 Saturday 09 December 2023 01:59:52 +0000 (0:00:00.901) 0:00:03.642 ***** TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:19 Saturday 09 December 2023 01:59:52 +0000 (0:00:00.010) 0:00:03.652 ***** NOTIFIED HANDLER linux-system-roles.template : Handler for template to restart services for sut changed: [sut] => { "changed": true, "checksum": "608ec785ba92141bf4a18a5fc9cddf3a954d9d9a", "dest": "/etc/foo.conf", "gid": 0, "group": "root", "md5sum": "1955272cddc0f09b7dbd047243cc5304", "mode": "0400", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 154, "src": "/root/.ansible/tmp/ansible-tmp-1702087192.4389386-1606-143145992904998/source", "state": "file", "uid": 0 } TASK [caller : Assert variable not overridden] ********************************* task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/tasks/main.yml:8 Saturday 09 December 2023 01:59:52 +0000 (0:00:00.523) 0:00:04.175 ***** ok: [sut] => { "changed": false } MSG: All assertions passed RUNNING HANDLER [linux-system-roles.template : Handler for template to restart services] *** task path: /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/handlers/main.yml:3 Saturday 09 December 2023 01:59:52 +0000 (0:00:00.010) 0:00:04.185 ***** META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=7 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Saturday 09 December 2023 01:59:52 +0000 (0:00:00.018) 0:00:04.204 ***** =============================================================================== Create var file in caller that can override the one in called role ------ 1.91s /WORKDIR/git-weekly-cidfw1zqjr/tests/tests_include_vars_from_parent.yml:6 ----- linux-system-roles.template : Ensure required packages are installed ---- 0.90s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:7 Gathering Facts --------------------------------------------------------- 0.74s /WORKDIR/git-weekly-cidfw1zqjr/tests/tests_include_vars_from_parent.yml:2 ----- linux-system-roles.template : Generate /etc/foo.conf -------------------- 0.52s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:19 linux-system-roles.template : Set platform/version specific variables --- 0.03s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/set_vars.yml:8 linux-system-roles.template : Set platform/version specific variables --- 0.02s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:3 linux-system-roles.template : Handler for template to restart services --- 0.02s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/handlers/main.yml:3 Include role ------------------------------------------------------------ 0.01s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/tasks/main.yml:4 ------------ linux-system-roles.template : Ensure ansible_facts used by role --------- 0.01s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/set_vars.yml:2 caller : Assert variable not overridden --------------------------------- 0.01s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/caller/tasks/main.yml:8 ------------ linux-system-roles.template : Ensure required services are enabled and started --- 0.01s /WORKDIR/git-weekly-cidfw1zqjr/tests/roles/linux-system-roles.template/tasks/main.yml:12 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---