+ cd /tmp/tmpyip1xup7/tests; TEST_SUBJECTS=/cache/centos-6.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_vpn-2-c52278a-centos-6-f42wet1r/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpyip1xup7/_setup.yml /tmp/tmpyip1xup7/tests/tests_default.yml ansible-playbook 2.8.18 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 *********************************************************** 1 plays in /tmp/tmpyip1xup7/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpyip1xup7/_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/tmpyip1xup7/_setup.yml:6 skipping: [/cache/centos-6.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpyip1xup7/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyip1xup7/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/tmpyip1xup7/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"} skipping: [/cache/centos-6.qcow2c] => (item=CentOS_6.yml) => {"ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml", "skip_reason": "Conditional result was False"} 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/tmpyip1xup7/tasks/main.yml:22 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/tmpyip1xup7/tasks/main.yml:27 TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /tmp/tmpyip1xup7/tasks/main.yml:34 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": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 125, "src": "/root/.ansible/tmp/ansible-tmp-1610387467.02-189466-50754102875663/source", "state": "file", "uid": 0} RUNNING HANDLER [linux-system-roles.template : template handler to restart services] *** task path: /tmp/tmpyip1xup7/handlers/main.yml:6 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=4 changed=1 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 + cd /tmp/tmpyip1xup7/tests; TEST_SUBJECTS=/cache/centos-6.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_vpn-2-c52278a-centos-6-f42wet1r/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpyip1xup7/_setup.yml /tmp/tmpyip1xup7/tests/tests_include_vars_from_parent.yml ansible-playbook 2.8.18 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 *********************************************************** 1 plays in /tmp/tmpyip1xup7/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpyip1xup7/_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/tmpyip1xup7/_setup.yml:6 skipping: [/cache/centos-6.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpyip1xup7/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyip1xup7/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/tmpyip1xup7/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/tmpyip1xup7/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-1610387490.39-189630-186240265095465/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS-6) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpyip1xup7/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-1610387490.93-189630-99573096932798/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/tmpyip1xup7/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-1610387491.19-189630-251349050839533/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS_6) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpyip1xup7/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-1610387491.43-189630-256246490000615/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=CentOS) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpyip1xup7/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-1610387491.69-189630-277634733477246/source", "state": "file", "uid": 0} changed: [/cache/centos-6.qcow2c -> localhost] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpyip1xup7/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-1610387491.92-189630-157320725386965/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpyip1xup7/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /tmp/tmpyip1xup7/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"} skipping: [/cache/centos-6.qcow2c] => (item=CentOS_6.yml) => {"ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml", "skip_reason": "Conditional result was False"} 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/tmpyip1xup7/tasks/main.yml:22 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/tmpyip1xup7/tasks/main.yml:27 TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /tmp/tmpyip1xup7/tasks/main.yml:34 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": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 125, "src": "/root/.ansible/tmp/ansible-tmp-1610387493.73-189816-60313625175145/source", "state": "file", "uid": 0} TASK [caller : assert] ********************************************************* task path: /tmp/tmpyip1xup7/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/tmpyip1xup7/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=4 rescued=0 ignored=0