+ cd /tmp/tmpixx32vn3/tests; TEST_SUBJECTS=/cache/centos-6.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_mssql-5-3b5c89f-centos-6-2ls8i6qg/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpixx32vn3/_setup.yml /tmp/tmpixx32vn3/tests/tests_default.yml ansible-playbook 2.8.19 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpixx32vn3/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpixx32vn3/_setup.yml:5 ok: [/cache/centos-6.qcow2c] => { "groups": { "all": [ "/cache/centos-6.qcow2c" ], "localhost": [ "/cache/centos-6.qcow2c" ], "subjects": [ "/cache/centos-6.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpixx32vn3/_setup.yml:6 skipping: [/cache/centos-6.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Change repos to use vault] *********************************************** META: ran handlers TASK [fix yum repos to use vault.centos.org] *********************************** task path: /tmp/tmpixx32vn3/_setup.yml:13 changed: [/cache/centos-6.qcow2c] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpixx32vn3/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpixx32vn3/tests/tests_default.yml:3 ok: [/cache/centos-6.qcow2c] META: ran handlers TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /tmp/tmpixx32vn3/tasks/main.yml:8 skipping: [/cache/centos-6.qcow2c] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/centos-6.qcow2c] => (item=CentOS.yml) => {"ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False"} ok: [/cache/centos-6.qcow2c] => (item=CentOS_6.yml) => {"ansible_facts": {"__template_packages": [], "__template_services": []}, "ansible_included_var_files": ["/tmp/tmpixx32vn3/vars/CentOS_6.yml"], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml"} skipping: [/cache/centos-6.qcow2c] => (item=CentOS_6.10.yml) => {"ansible_loop_var": "item", "changed": false, "item": "CentOS_6.10.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.template : Ensure required packages are installed] **** task path: /tmp/tmpixx32vn3/tasks/main.yml:24 ok: [/cache/centos-6.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": []} TASK [linux-system-roles.template : Ensure required services are enabled and started] *** task path: /tmp/tmpixx32vn3/tasks/main.yml:29 TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /tmp/tmpixx32vn3/tasks/main.yml:36 NOTIFIED HANDLER linux-system-roles.template : template handler to restart services for /cache/centos-6.qcow2c changed: [/cache/centos-6.qcow2c] => {"changed": true, "checksum": "37ca01c8752be9e3c6bffd00835366a6d606a2f7", "dest": "/etc/foo.conf", "gid": 0, "group": "root", "md5sum": "1f17e90823e58aad923d09f72c9b0715", "mode": "0400", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 125, "src": "/root/.ansible/tmp/ansible-tmp-1616747658.52-2323-25993092072411/source", "state": "file", "uid": 0} RUNNING HANDLER [linux-system-roles.template : template handler to restart services] *** task path: /tmp/tmpixx32vn3/handlers/main.yml:6 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=6 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpixx32vn3/tests; TEST_SUBJECTS=/cache/centos-6.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_mssql-5-3b5c89f-centos-6-2ls8i6qg/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpixx32vn3/_setup.yml /tmp/tmpixx32vn3/tests/tests_include_vars_from_parent.yml ansible-playbook 2.8.19 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpixx32vn3/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpixx32vn3/_setup.yml:5 ok: [/cache/centos-6.qcow2c] => { "groups": { "all": [ "/cache/centos-6.qcow2c" ], "localhost": [ "/cache/centos-6.qcow2c" ], "subjects": [ "/cache/centos-6.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpixx32vn3/_setup.yml:6 skipping: [/cache/centos-6.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Change repos to use vault] *********************************************** META: ran handlers TASK [fix yum repos to use vault.centos.org] *********************************** task path: /tmp/tmpixx32vn3/_setup.yml:13 changed: [/cache/centos-6.qcow2c] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpixx32vn3/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpixx32vn3/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/centos-6.qcow2c] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpixx32vn3/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS-6.10) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpixx32vn3/tests/roles/caller/vars/CentOS-6.10.yml", "gid": 0, "group": "root", "item": "CentOS-6.10", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616747682.2-2504-194497995683770/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS-6) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpixx32vn3/tests/roles/caller/vars/CentOS-6.yml", "gid": 0, "group": "root", "item": "CentOS-6", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616747682.72-2504-252722975619719/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS_6.10) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpixx32vn3/tests/roles/caller/vars/CentOS_6.10.yml", "gid": 0, "group": "root", "item": "CentOS_6.10", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616747682.97-2504-230722862960718/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS_6) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpixx32vn3/tests/roles/caller/vars/CentOS_6.yml", "gid": 0, "group": "root", "item": "CentOS_6", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616747683.22-2504-90273575753904/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpixx32vn3/tests/roles/caller/vars/CentOS.yml", "gid": 0, "group": "root", "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616747683.48-2504-203130653251545/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpixx32vn3/tests/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616747683.75-2504-567412121189/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpixx32vn3/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /tmp/tmpixx32vn3/tasks/main.yml:8 skipping: [/cache/centos-6.qcow2c] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/centos-6.qcow2c] => (item=CentOS.yml) => {"ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False"} ok: [/cache/centos-6.qcow2c] => (item=CentOS_6.yml) => {"ansible_facts": {"__template_packages": [], "__template_services": []}, "ansible_included_var_files": ["/tmp/tmpixx32vn3/vars/CentOS_6.yml"], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml"} skipping: [/cache/centos-6.qcow2c] => (item=CentOS_6.10.yml) => {"ansible_loop_var": "item", "changed": false, "item": "CentOS_6.10.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.template : Ensure required packages are installed] **** task path: /tmp/tmpixx32vn3/tasks/main.yml:24 ok: [/cache/centos-6.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": []} TASK [linux-system-roles.template : Ensure required services are enabled and started] *** task path: /tmp/tmpixx32vn3/tasks/main.yml:29 TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /tmp/tmpixx32vn3/tasks/main.yml:36 NOTIFIED HANDLER linux-system-roles.template : template handler to restart services for /cache/centos-6.qcow2c changed: [/cache/centos-6.qcow2c] => {"changed": true, "checksum": "37ca01c8752be9e3c6bffd00835366a6d606a2f7", "dest": "/etc/foo.conf", "gid": 0, "group": "root", "md5sum": "1f17e90823e58aad923d09f72c9b0715", "mode": "0400", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 125, "src": "/root/.ansible/tmp/ansible-tmp-1616747701.78-2690-68533089830358/source", "state": "file", "uid": 0} TASK [caller : assert] ********************************************************* task path: /tmp/tmpixx32vn3/tests/roles/caller/tasks/main.yml:7 ok: [/cache/centos-6.qcow2c] => { "changed": false, "msg": "All assertions passed" } RUNNING HANDLER [linux-system-roles.template : template handler to restart services] *** task path: /tmp/tmpixx32vn3/handlers/main.yml:6 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=8 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0