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/tmp6e14t4bh 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_default.yml **************************************************** 3 plays in /tmp/tmpsqnv7rd5/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_default.yml:2 Thursday 21 July 2022 20:26:38 +0000 (0:00:00.012) 0:00:00.012 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpsqnv7rd5/tests/tests_default.yml:9 Thursday 21 July 2022 20:26:39 +0000 (0:00:00.983) 0:00:00.995 ********* included: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml for /cache/rhel-6.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:26:39 +0000 (0:00:00.028) 0:00:01.024 ********* included: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml for /cache/rhel-6.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:26:39 +0000 (0:00:00.029) 0:00:01.054 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:26:40 +0000 (0:00:00.057) 0:00:01.112 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:26:40 +0000 (0:00:00.614) 0:00:01.726 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.faAv5D", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:26:40 +0000 (0:00:00.345) 0:00:02.071 ********* ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.faAv5D/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.faAv5D/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003337", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:26:40.950852", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:26:40.947515" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.faAv5D/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.faAv5D/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003528", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:26:41.185959", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:26:41.182431" } META: ran handlers META: ran handlers PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:26:41 +0000 (0:00:00.692) 0:00:02.763 ********* included: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:26:41 +0000 (0:00:00.029) 0:00:02.793 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:26:42 +0000 (0:00:00.367) 0:00:03.160 ********* skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } }, "__ssh_supports_validate": false }, "ansible_included_var_files": [ "/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/vars/RedHat_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.yml" } skipping: [/cache/rhel-6.qcow2.snap] => (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.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:26:42 +0000 (0:00:00.056) 0:00:03.217 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-123.el6_9.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:26:42 +0000 (0:00:00.485) 0:00:03.702 ********* skipping: [/cache/rhel-6.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/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:26:42 +0000 (0:00:00.026) 0:00:03.729 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:26:42 +0000 (0:00:00.025) 0:00:03.754 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "checksum": "7f797790c0b65e6418951c0ad66d72cb0692cf6d", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/ssh/ssh_config", "secontext": "system_u:object_r:etc_t:s0", "size": 283, "state": "file", "uid": 0 } META: role_complete for /cache/rhel-6.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_default.yml:18 Thursday 21 July 2022 20:26:43 +0000 (0:00:00.946) 0:00:04.700 ********* ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_default.yml:25 Thursday 21 July 2022 20:26:44 +0000 (0:00:00.682) 0:00:05.383 ********* included: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml for /cache/rhel-6.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:26:44 +0000 (0:00:00.032) 0:00:05.415 ********* ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.faAv5D//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.faAv5D//etc/ssh_config.d/00-ansible.conf $(dirname /etc/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.003319", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:26:44.192777", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:26:44.189458" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.faAv5D//etc/ssh_config; then\n cp /tmp/ansible.faAv5D//etc/ssh_config $(dirname /etc/ssh_config)\nelif test -f /etc/ssh_config; then\n rm /etc/ssh_config\nfi\n", "delta": "0:00:00.003329", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:26:44.450310", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:26:44.446981" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:26:44 +0000 (0:00:00.582) 0:00:05.997 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.faAv5D", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:26:45 +0000 (0:00:00.326) 0:00:06.324 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmpsqnv7rd5/tests/tests_default.yml:2 ------------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 0.95s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Backup files ------------------------------------------------------------ 0.69s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.68s /tmp/tmpsqnv7rd5/tests/tests_default.yml:18 ----------------------------------- Make sure openssh is installed before creating backup ------------------- 0.61s /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.58s /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.49s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.37s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.35s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.33s /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 ----------------------------------- Ensure facts used by test ----------------------------------------------- 0.06s /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:2 -------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Restore configuration files --------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tests_default.yml:25 ----------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tests_default.yml:9 ------------------------------------ linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpsqnv7rd5/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.03s /tmp/tmpsqnv7rd5/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/tmp6e14t4bh 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_default.yml **************************************************** 3 plays in /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:28:14 +0000 (0:00:00.012) 0:00:00.012 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:28:15 +0000 (0:00:00.992) 0:00:01.005 ********* included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml for /cache/rhel-6.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:28:15 +0000 (0:00:00.030) 0:00:01.035 ********* included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml for /cache/rhel-6.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:28:15 +0000 (0:00:00.028) 0:00:01.064 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:28:15 +0000 (0:00:00.059) 0:00:01.123 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:28:15 +0000 (0:00:00.614) 0:00:01.737 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.8qQC9M", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:28:16 +0000 (0:00:00.352) 0:00:02.090 ********* ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.8qQC9M/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.8qQC9M/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003365", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:28:15.867730", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:28:15.864365" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.8qQC9M/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.8qQC9M/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003360", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:28:16.109284", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:28:16.105924" } META: ran handlers META: ran handlers PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:28:16 +0000 (0:00:00.694) 0:00:02.784 ********* included: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:28:16 +0000 (0:00:00.029) 0:00:02.814 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:28:17 +0000 (0:00:00.359) 0:00:03.174 ********* skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } }, "__ssh_supports_validate": false }, "ansible_included_var_files": [ "/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.yml" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.10.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:28:17 +0000 (0:00:00.053) 0:00:03.227 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-123.el6_9.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:28:17 +0000 (0:00:00.497) 0:00:03.725 ********* skipping: [/cache/rhel-6.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/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:28:17 +0000 (0:00:00.028) 0:00:03.754 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:28:17 +0000 (0:00:00.026) 0:00:03.781 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "checksum": "7f797790c0b65e6418951c0ad66d72cb0692cf6d", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/ssh/ssh_config", "secontext": "system_u:object_r:etc_t:s0", "size": 283, "state": "file", "uid": 0 } META: role_complete for /cache/rhel-6.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:28:18 +0000 (0:00:00.930) 0:00:04.711 ********* ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:28:19 +0000 (0:00:00.671) 0:00:05.382 ********* included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml for /cache/rhel-6.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:28:19 +0000 (0:00:00.029) 0:00:05.412 ********* ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.8qQC9M//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.8qQC9M//etc/ssh_config.d/00-ansible.conf $(dirname /etc/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.003440", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:28:19.078356", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:28:19.074916" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.8qQC9M//etc/ssh_config; then\n cp /tmp/ansible.8qQC9M//etc/ssh_config $(dirname /etc/ssh_config)\nelif test -f /etc/ssh_config; then\n rm /etc/ssh_config\nfi\n", "delta": "0:00:00.003395", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:28:19.319324", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:28:19.315929" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:28:19 +0000 (0:00:00.547) 0:00:05.960 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.8qQC9M", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:28:20 +0000 (0:00:00.277) 0:00:06.237 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 0.99s /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.93s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.69s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.67s /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:18 ------------------------------- Make sure openssh is installed before creating backup ------------------- 0.61s /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.55s /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.50s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.36s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.35s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.28s /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 ------------------------------- Ensure facts used by test ----------------------------------------------- 0.06s /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:2 ---------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:9 -------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tests_default.yml:25 ------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp6e14t4bh/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.03s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17