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/tmp08vsdpvi 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/tmposga18ev/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmposga18ev/tests/tests_include_vars_from_parent.yml:1 Thursday 21 July 2022 20:23:49 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmposga18ev/tests/tests_include_vars_from_parent.yml:4 Thursday 21 July 2022 20:23:50 +0000 (0:00:01.185) 0:00:01.199 ********* changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat-9.0) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmposga18ev/tests/roles/caller/vars/RedHat-9.0.yml", "gid": 0, "group": "root", "item": "RedHat-9.0", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435030.86919-45514-114957089051109/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmposga18ev/tests/roles/caller/vars/RedHat-9.yml", "gid": 0, "group": "root", "item": "RedHat-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435031.450267-45514-209489455566540/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat_9.0) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmposga18ev/tests/roles/caller/vars/RedHat_9.0.yml", "gid": 0, "group": "root", "item": "RedHat_9.0", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435031.7807493-45514-207338661909970/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmposga18ev/tests/roles/caller/vars/RedHat_9.yml", "gid": 0, "group": "root", "item": "RedHat_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435032.1031845-45514-80220556999127/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmposga18ev/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-1658435032.4253795-45514-265597849655854/source", "state": "file", "uid": 0 } TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmposga18ev/tests/roles/caller/tasks/main.yml:4 Thursday 21 July 2022 20:23:52 +0000 (0:00:01.928) 0:00:03.128 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:23:52 +0000 (0:00:00.035) 0:00:03.164 ********* included: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:23:52 +0000 (0:00:00.028) 0:00:03.192 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:23:53 +0000 (0:00:00.512) 0:00:03.704 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.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/tmposga18ev/tests/roles/linux-system-roles.ssh/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:23:53 +0000 (0:00:00.050) 0:00:03.754 ********* ok: [/cache/rhel-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/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:23:54 +0000 (0:00:00.976) 0:00:04.731 ********* skipping: [/cache/rhel-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/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:23:54 +0000 (0:00:00.022) 0:00:04.754 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:23:54 +0000 (0:00:00.022) 0:00:04.777 ********* changed: [/cache/rhel-9.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-9.qcow2.snap TASK [caller : assert] ********************************************************* task path: /tmp/tmposga18ev/tests/roles/caller/tasks/main.yml:7 Thursday 21 July 2022 20:23:55 +0000 (0:00:00.907) 0:00:05.685 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:23:55 +0000 (0:00:00.046) 0:00:05.731 ********* =============================================================================== create var file in caller that can override the one in called role ------ 1.93s /tmp/tmposga18ev/tests/tests_include_vars_from_parent.yml:4 ------------------- Gathering Facts --------------------------------------------------------- 1.19s /tmp/tmposga18ev/tests/tests_include_vars_from_parent.yml:1 ------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 0.98s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 0.91s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.51s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ caller : assert --------------------------------------------------------- 0.05s /tmp/tmposga18ev/tests/roles/caller/tasks/main.yml:7 -------------------------- include_role : {{ roletoinclude }} -------------------------------------- 0.04s /tmp/tmposga18ev/tests/roles/caller/tasks/main.yml:4 -------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmposga18ev/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/tmposga18ev/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/tmposga18ev/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/tmp08vsdpvi 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/tmpbvj7axe_/tests/ssh/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbvj7axe_/tests/ssh/tests_include_vars_from_parent.yml:1 Thursday 21 July 2022 20:26:06 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpbvj7axe_/tests/ssh/tests_include_vars_from_parent.yml:4 Thursday 21 July 2022 20:26:07 +0000 (0:00:01.169) 0:00:01.182 ********* changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat-9.0) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpbvj7axe_/tests/ssh/roles/caller/vars/RedHat-9.0.yml", "gid": 0, "group": "root", "item": "RedHat-9.0", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435167.8664699-48916-183953069841180/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpbvj7axe_/tests/ssh/roles/caller/vars/RedHat-9.yml", "gid": 0, "group": "root", "item": "RedHat-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435168.4344275-48916-112687448897309/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat_9.0) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpbvj7axe_/tests/ssh/roles/caller/vars/RedHat_9.0.yml", "gid": 0, "group": "root", "item": "RedHat_9.0", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435168.7728722-48916-227174829710774/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpbvj7axe_/tests/ssh/roles/caller/vars/RedHat_9.yml", "gid": 0, "group": "root", "item": "RedHat_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1658435169.1177697-48916-280869801303011/source", "state": "file", "uid": 0 } changed: [/cache/rhel-9.qcow2.snap -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpbvj7axe_/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-1658435169.4519975-48916-271527442330796/source", "state": "file", "uid": 0 } TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpbvj7axe_/tests/ssh/roles/caller/tasks/main.yml:4 Thursday 21 July 2022 20:26:09 +0000 (0:00:01.958) 0:00:03.141 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:26:09 +0000 (0:00:00.038) 0:00:03.179 ********* included: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:26:09 +0000 (0:00:00.030) 0:00:03.210 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:26:10 +0000 (0:00:00.515) 0:00:03.725 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.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/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:26:10 +0000 (0:00:00.051) 0:00:03.777 ********* ok: [/cache/rhel-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/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:26:11 +0000 (0:00:00.955) 0:00:04.732 ********* skipping: [/cache/rhel-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/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:26:11 +0000 (0:00:00.022) 0:00:04.755 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:26:11 +0000 (0:00:00.022) 0:00:04.777 ********* changed: [/cache/rhel-9.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-9.qcow2.snap TASK [caller : assert] ********************************************************* task path: /tmp/tmpbvj7axe_/tests/ssh/roles/caller/tasks/main.yml:7 Thursday 21 July 2022 20:26:12 +0000 (0:00:00.875) 0:00:05.653 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:26:12 +0000 (0:00:00.045) 0:00:05.698 ********* =============================================================================== create var file in caller that can override the one in called role ------ 1.96s /tmp/tmpbvj7axe_/tests/ssh/tests_include_vars_from_parent.yml:4 --------------- Gathering Facts --------------------------------------------------------- 1.17s /tmp/tmpbvj7axe_/tests/ssh/tests_include_vars_from_parent.yml:1 --------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.96s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.88s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.52s /tmp/tmp08vsdpvi/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/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 caller : assert --------------------------------------------------------- 0.05s /tmp/tmpbvj7axe_/tests/ssh/roles/caller/tasks/main.yml:7 ---------------------- include_role : {{ roletoinclude }} -------------------------------------- 0.04s /tmp/tmpbvj7axe_/tests/ssh/roles/caller/tasks/main.yml:4 ---------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmp08vsdpvi/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/tmp08vsdpvi/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/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17