ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmptxteqxd0 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmp46lt5otd/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp46lt5otd/tests/tests_include_vars_from_parent.yml:1 Thursday 21 July 2022 20:20:55 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmp46lt5otd/tests/tests_include_vars_from_parent.yml:4 Thursday 21 July 2022 20:20:56 +0000 (0:00:01.144) 0:00:01.157 ********* changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat-8.7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp46lt5otd/tests/roles/caller/vars/RedHat-8.7.yml", "gid": 0, "group": "root", "item": "RedHat-8.7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658434856.7969933-41465-126791046213235/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat-8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp46lt5otd/tests/roles/caller/vars/RedHat-8.yml", "gid": 0, "group": "root", "item": "RedHat-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658434857.356552-41465-140540982597235/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat_8.7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp46lt5otd/tests/roles/caller/vars/RedHat_8.7.yml", "gid": 0, "group": "root", "item": "RedHat_8.7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658434857.6927655-41465-93641146859568/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat_8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp46lt5otd/tests/roles/caller/vars/RedHat_8.yml", "gid": 0, "group": "root", "item": "RedHat_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658434858.0239606-41465-256600444170419/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp46lt5otd/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-1658434858.3564146-41465-100697403119411/source", "state": "file", "uid": 0 } TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmp46lt5otd/tests/roles/caller/tasks/main.yml:4 Thursday 21 July 2022 20:20:58 +0000 (0:00:01.959) 0:00:03.117 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:20:58 +0000 (0:00:00.034) 0:00:03.151 ********* included: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:20:58 +0000 (0:00:00.028) 0:00:03.179 ********* ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:20:59 +0000 (0:00:00.498) 0:00:03.678 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:20:59 +0000 (0:00:00.049) 0:00:03.727 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:21:00 +0000 (0:00:01.441) 0:00:05.169 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:21:00 +0000 (0:00:00.024) 0:00:05.193 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:21:00 +0000 (0:00:00.023) 0:00:05.217 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "checksum": "15062ec12da5e642a2b0fb64c5e03d43b80d9cf0", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/ssh/ssh_config.d/00-ansible.conf", "secontext": "system_u:object_r:etc_t:s0", "size": 22, "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [caller : assert] ********************************************************* task path: /tmp/tmp46lt5otd/tests/roles/caller/tasks/main.yml:7 Thursday 21 July 2022 20:21:01 +0000 (0:00:00.892) 0:00:06.109 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed META: role_complete for /cache/rhel-8-y.qcow2.snap META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:21:01 +0000 (0:00:00.047) 0:00:06.156 ********* =============================================================================== create var file in caller that can override the one in called role ------ 1.96s /tmp/tmp46lt5otd/tests/tests_include_vars_from_parent.yml:4 ------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.44s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Gathering Facts --------------------------------------------------------- 1.14s /tmp/tmp46lt5otd/tests/tests_include_vars_from_parent.yml:1 ------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 0.89s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.50s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ caller : assert --------------------------------------------------------- 0.05s /tmp/tmp46lt5otd/tests/roles/caller/tasks/main.yml:7 -------------------------- include_role : {{ roletoinclude }} -------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/roles/caller/tasks/main.yml:4 -------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmptxteqxd0 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpni6azq3t/tests/ssh/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_include_vars_from_parent.yml:1 Thursday 21 July 2022 20:23:32 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpni6azq3t/tests/ssh/tests_include_vars_from_parent.yml:4 Thursday 21 July 2022 20:23:33 +0000 (0:00:01.129) 0:00:01.143 ********* changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat-8.7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpni6azq3t/tests/ssh/roles/caller/vars/RedHat-8.7.yml", "gid": 0, "group": "root", "item": "RedHat-8.7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435013.552199-44848-228403205678818/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat-8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpni6azq3t/tests/ssh/roles/caller/vars/RedHat-8.yml", "gid": 0, "group": "root", "item": "RedHat-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435014.102875-44848-211706197058553/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat_8.7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpni6azq3t/tests/ssh/roles/caller/vars/RedHat_8.7.yml", "gid": 0, "group": "root", "item": "RedHat_8.7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435014.4429023-44848-226254476895607/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat_8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpni6azq3t/tests/ssh/roles/caller/vars/RedHat_8.yml", "gid": 0, "group": "root", "item": "RedHat_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435014.787603-44848-126363638509992/source", "state": "file", "uid": 0 } changed: [/cache/rhel-8-y.qcow2.snap -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpni6azq3t/tests/ssh/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-1658435015.1475337-44848-93019268559611/source", "state": "file", "uid": 0 } TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpni6azq3t/tests/ssh/roles/caller/tasks/main.yml:4 Thursday 21 July 2022 20:23:35 +0000 (0:00:02.006) 0:00:03.149 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:23:35 +0000 (0:00:00.048) 0:00:03.198 ********* included: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:23:35 +0000 (0:00:00.030) 0:00:03.229 ********* ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:23:36 +0000 (0:00:00.512) 0:00:03.741 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:23:36 +0000 (0:00:00.052) 0:00:03.793 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:23:37 +0000 (0:00:01.437) 0:00:05.231 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:23:37 +0000 (0:00:00.024) 0:00:05.256 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:23:37 +0000 (0:00:00.024) 0:00:05.280 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "checksum": "15062ec12da5e642a2b0fb64c5e03d43b80d9cf0", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/ssh/ssh_config.d/00-ansible.conf", "secontext": "system_u:object_r:etc_t:s0", "size": 22, "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [caller : assert] ********************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/roles/caller/tasks/main.yml:7 Thursday 21 July 2022 20:23:38 +0000 (0:00:00.890) 0:00:06.170 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed META: role_complete for /cache/rhel-8-y.qcow2.snap META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:23:38 +0000 (0:00:00.045) 0:00:06.216 ********* =============================================================================== create var file in caller that can override the one in called role ------ 2.01s /tmp/tmpni6azq3t/tests/ssh/tests_include_vars_from_parent.yml:4 --------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.44s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpni6azq3t/tests/ssh/tests_include_vars_from_parent.yml:1 --------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.89s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.51s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 include_role : {{ roletoinclude }} -------------------------------------- 0.05s /tmp/tmpni6azq3t/tests/ssh/roles/caller/tasks/main.yml:4 ---------------------- caller : assert --------------------------------------------------------- 0.05s /tmp/tmpni6azq3t/tests/ssh/roles/caller/tasks/main.yml:7 ---------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17