+ cd /tmp/tmp1v_u444q/tests; TEST_SUBJECTS=/cache/rhel-6.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_mssql-5-3b5c89f-rhel-6-hamy1wcb/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp1v_u444q/_setup.yml /tmp/tmp1v_u444q/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/tmp1v_u444q/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp1v_u444q/_setup.yml:5 ok: [/cache/rhel-6.qcow2] => { "groups": { "all": [ "/cache/rhel-6.qcow2" ], "localhost": [ "/cache/rhel-6.qcow2" ], "subjects": [ "/cache/rhel-6.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp1v_u444q/_setup.yml:6 skipping: [/cache/rhel-6.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmp1v_u444q/_setup.yml:13 changed: [/cache/rhel-6.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-6.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-6.qcow2] => {"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/rhel-6.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp1v_u444q/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1v_u444q/tests/tests_default.yml:3 ok: [/cache/rhel-6.qcow2] META: ran handlers TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /tmp/tmp1v_u444q/tasks/main.yml:8 skipping: [/cache/rhel-6.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-6.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} ok: [/cache/rhel-6.qcow2] => (item=RedHat_6.yml) => {"ansible_facts": {"__template_packages": [], "__template_services": []}, "ansible_included_var_files": ["/tmp/tmp1v_u444q/vars/RedHat_6.yml"], "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.yml"} skipping: [/cache/rhel-6.qcow2] => (item=RedHat_6.10.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_6.10.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.template : Ensure required packages are installed] **** task path: /tmp/tmp1v_u444q/tasks/main.yml:24 ok: [/cache/rhel-6.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": []} TASK [linux-system-roles.template : Ensure required services are enabled and started] *** task path: /tmp/tmp1v_u444q/tasks/main.yml:29 TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /tmp/tmp1v_u444q/tasks/main.yml:36 NOTIFIED HANDLER linux-system-roles.template : template handler to restart services for /cache/rhel-6.qcow2 changed: [/cache/rhel-6.qcow2] => {"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-1616759835.77-232-211628883498119/source", "state": "file", "uid": 0} RUNNING HANDLER [linux-system-roles.template : template handler to restart services] *** task path: /tmp/tmp1v_u444q/handlers/main.yml:6 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2 : ok=6 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmp1v_u444q/tests; TEST_SUBJECTS=/cache/rhel-6.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_mssql-5-3b5c89f-rhel-6-hamy1wcb/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp1v_u444q/_setup.yml /tmp/tmp1v_u444q/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/tmp1v_u444q/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp1v_u444q/_setup.yml:5 ok: [/cache/rhel-6.qcow2] => { "groups": { "all": [ "/cache/rhel-6.qcow2" ], "localhost": [ "/cache/rhel-6.qcow2" ], "subjects": [ "/cache/rhel-6.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp1v_u444q/_setup.yml:6 skipping: [/cache/rhel-6.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmp1v_u444q/_setup.yml:13 changed: [/cache/rhel-6.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-6.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-6.qcow2] => {"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/rhel-6.qcow2 : 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/tmp1v_u444q/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1v_u444q/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/rhel-6.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmp1v_u444q/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/rhel-6.qcow2 -> localhost] => (item=RedHat-6.10) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1v_u444q/tests/roles/caller/vars/RedHat-6.10.yml", "gid": 0, "group": "root", "item": "RedHat-6.10", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616759863.67-441-51273698603965/source", "state": "file", "uid": 0} changed: [/cache/rhel-6.qcow2 -> localhost] => (item=RedHat-6) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1v_u444q/tests/roles/caller/vars/RedHat-6.yml", "gid": 0, "group": "root", "item": "RedHat-6", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616759864.23-441-11150334063307/source", "state": "file", "uid": 0} changed: [/cache/rhel-6.qcow2 -> localhost] => (item=RedHat_6.10) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1v_u444q/tests/roles/caller/vars/RedHat_6.10.yml", "gid": 0, "group": "root", "item": "RedHat_6.10", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616759864.51-441-173334859174656/source", "state": "file", "uid": 0} changed: [/cache/rhel-6.qcow2 -> localhost] => (item=RedHat_6) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1v_u444q/tests/roles/caller/vars/RedHat_6.yml", "gid": 0, "group": "root", "item": "RedHat_6", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1616759864.78-441-50262433778405/source", "state": "file", "uid": 0} changed: [/cache/rhel-6.qcow2 -> localhost] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1v_u444q/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-1616759865.06-441-263383541318214/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmp1v_u444q/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /tmp/tmp1v_u444q/tasks/main.yml:8 skipping: [/cache/rhel-6.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-6.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} ok: [/cache/rhel-6.qcow2] => (item=RedHat_6.yml) => {"ansible_facts": {"__template_packages": [], "__template_services": []}, "ansible_included_var_files": ["/tmp/tmp1v_u444q/vars/RedHat_6.yml"], "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.yml"} skipping: [/cache/rhel-6.qcow2] => (item=RedHat_6.10.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_6.10.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.template : Ensure required packages are installed] **** task path: /tmp/tmp1v_u444q/tasks/main.yml:24 ok: [/cache/rhel-6.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": []} TASK [linux-system-roles.template : Ensure required services are enabled and started] *** task path: /tmp/tmp1v_u444q/tasks/main.yml:29 TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /tmp/tmp1v_u444q/tasks/main.yml:36 NOTIFIED HANDLER linux-system-roles.template : template handler to restart services for /cache/rhel-6.qcow2 changed: [/cache/rhel-6.qcow2] => {"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-1616759869.16-600-269099238789755/source", "state": "file", "uid": 0} TASK [caller : assert] ********************************************************* task path: /tmp/tmp1v_u444q/tests/roles/caller/tasks/main.yml:7 ok: [/cache/rhel-6.qcow2] => { "changed": false, "msg": "All assertions passed" } RUNNING HANDLER [linux-system-roles.template : template handler to restart services] *** task path: /tmp/tmp1v_u444q/handlers/main.yml:6 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2 : ok=8 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0