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/tmpxzwiidf_ 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/tmpphxus3ul/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpphxus3ul/tests/tests_include_vars_from_parent.yml:1 Thursday 21 July 2022 20:40:30 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpphxus3ul/tests/tests_include_vars_from_parent.yml:4 Thursday 21 July 2022 20:40:31 +0000 (0:00:01.130) 0:00:01.145 ********* changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=CentOS-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpphxus3ul/tests/roles/caller/vars/CentOS-9.yml", "gid": 0, "group": "root", "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658436031.233925-60767-246043564283803/source", "state": "file", "uid": 0 } changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=CentOS_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpphxus3ul/tests/roles/caller/vars/CentOS_9.yml", "gid": 0, "group": "root", "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658436031.7888021-60767-120967732623069/source", "state": "file", "uid": 0 } changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpphxus3ul/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-1658436032.1385524-60767-165773636594248/source", "state": "file", "uid": 0 } changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpphxus3ul/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-1658436032.4719903-60767-28896901988529/source", "state": "file", "uid": 0 } TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpphxus3ul/tests/roles/caller/tasks/main.yml:4 Thursday 21 July 2022 20:40:32 +0000 (0:00:01.638) 0:00:02.783 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:40:32 +0000 (0:00:00.036) 0:00:02.819 ********* included: /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:40:32 +0000 (0:00:00.027) 0:00:02.847 ********* ok: [/cache/centos-9.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:40:33 +0000 (0:00:00.495) 0:00:03.342 ********* skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:40:33 +0000 (0:00:00.041) 0:00:03.383 ********* ok: [/cache/centos-9.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/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:40:34 +0000 (0:00:00.959) 0:00:04.343 ********* skipping: [/cache/centos-9.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/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:40:34 +0000 (0:00:00.024) 0:00:04.368 ********* skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:40:34 +0000 (0:00:00.023) 0:00:04.392 ********* changed: [/cache/centos-9.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.18955.2022-07-21@16:40:34~", "changed": true, "checksum": "15062ec12da5e642a2b0fb64c5e03d43b80d9cf0", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "88be21c8634b01869b9f694831b84c1d", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1658436034.4848008-60891-156940792553388/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-9.qcow2.snap TASK [caller : assert] ********************************************************* task path: /tmp/tmpphxus3ul/tests/roles/caller/tasks/main.yml:7 Thursday 21 July 2022 20:40:35 +0000 (0:00:00.908) 0:00:05.300 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=7 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:40:35 +0000 (0:00:00.043) 0:00:05.344 ********* =============================================================================== create var file in caller that can override the one in called role ------ 1.64s /tmp/tmpphxus3ul/tests/tests_include_vars_from_parent.yml:4 ------------------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpphxus3ul/tests/tests_include_vars_from_parent.yml:1 ------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 0.96s /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 0.91s /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.50s /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ caller : assert --------------------------------------------------------- 0.04s /tmp/tmpphxus3ul/tests/roles/caller/tasks/main.yml:7 -------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.04s /tmp/tmpphxus3ul/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ include_role : {{ roletoinclude }} -------------------------------------- 0.04s /tmp/tmpphxus3ul/tests/roles/caller/tasks/main.yml:4 -------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpphxus3ul/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/tmpphxus3ul/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/tmpphxus3ul/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/tmpxzwiidf_ 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/tmp1qbds5ja/tests/ssh/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1qbds5ja/tests/ssh/tests_include_vars_from_parent.yml:1 Thursday 21 July 2022 20:42:40 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmp1qbds5ja/tests/ssh/tests_include_vars_from_parent.yml:4 Thursday 21 July 2022 20:42:41 +0000 (0:00:01.107) 0:00:01.120 ********* changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=CentOS-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1qbds5ja/tests/ssh/roles/caller/vars/CentOS-9.yml", "gid": 0, "group": "root", "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658436161.464206-63703-253239683803077/source", "state": "file", "uid": 0 } changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=CentOS_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1qbds5ja/tests/ssh/roles/caller/vars/CentOS_9.yml", "gid": 0, "group": "root", "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658436162.015664-63703-118425567049915/source", "state": "file", "uid": 0 } changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1qbds5ja/tests/ssh/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-1658436162.3492894-63703-31783334207434/source", "state": "file", "uid": 0 } changed: [/cache/centos-9.qcow2.snap -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp1qbds5ja/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-1658436162.6892984-63703-215447996716660/source", "state": "file", "uid": 0 } TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmp1qbds5ja/tests/ssh/roles/caller/tasks/main.yml:4 Thursday 21 July 2022 20:42:43 +0000 (0:00:01.625) 0:00:02.745 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:42:43 +0000 (0:00:00.039) 0:00:02.785 ********* included: /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:42:43 +0000 (0:00:00.028) 0:00:02.814 ********* ok: [/cache/centos-9.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:42:43 +0000 (0:00:00.502) 0:00:03.316 ********* skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:42:43 +0000 (0:00:00.038) 0:00:03.355 ********* ok: [/cache/centos-9.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/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:42:44 +0000 (0:00:00.981) 0:00:04.336 ********* skipping: [/cache/centos-9.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/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:42:44 +0000 (0:00:00.023) 0:00:04.360 ********* skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:42:44 +0000 (0:00:00.021) 0:00:04.382 ********* changed: [/cache/centos-9.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.18951.2022-07-21@16:42:44~", "changed": true, "checksum": "15062ec12da5e642a2b0fb64c5e03d43b80d9cf0", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "88be21c8634b01869b9f694831b84c1d", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1658436164.7328231-63827-260830340352818/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-9.qcow2.snap TASK [caller : assert] ********************************************************* task path: /tmp/tmp1qbds5ja/tests/ssh/roles/caller/tasks/main.yml:7 Thursday 21 July 2022 20:42:45 +0000 (0:00:00.826) 0:00:05.209 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=7 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:42:45 +0000 (0:00:00.047) 0:00:05.257 ********* =============================================================================== create var file in caller that can override the one in called role ------ 1.63s /tmp/tmp1qbds5ja/tests/ssh/tests_include_vars_from_parent.yml:4 --------------- Gathering Facts --------------------------------------------------------- 1.11s /tmp/tmp1qbds5ja/tests/ssh/tests_include_vars_from_parent.yml:1 --------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.98s /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.83s /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.50s /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 caller : assert --------------------------------------------------------- 0.05s /tmp/tmp1qbds5ja/tests/ssh/roles/caller/tasks/main.yml:7 ---------------------- include_role : {{ roletoinclude }} -------------------------------------- 0.04s /tmp/tmp1qbds5ja/tests/ssh/roles/caller/tasks/main.yml:4 ---------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.04s /tmp/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpxzwiidf_/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/tmpxzwiidf_/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/tmpxzwiidf_/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17