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/tmpharb6qhc 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/tmptgthu93e/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_default.yml:2 Thursday 21 July 2022 20:29:09 +0000 (0:00:00.013) 0:00:00.013 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmptgthu93e/tests/tests_default.yml:9 Thursday 21 July 2022 20:29:10 +0000 (0:00:01.013) 0:00:01.027 ********* included: /tmp/tmptgthu93e/tests/tasks/backup.yml for /cache/centos-6.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:29:10 +0000 (0:00:00.029) 0:00:01.056 ********* included: /tmp/tmptgthu93e/tests/tasks/setup.yml for /cache/centos-6.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmptgthu93e/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:29:10 +0000 (0:00:00.046) 0:00:01.103 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmptgthu93e/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:29:10 +0000 (0:00:00.023) 0:00:01.127 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:29:11 +0000 (0:00:00.592) 0:00:01.719 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.heYCoj", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:29:11 +0000 (0:00:00.368) 0:00:02.088 ********* ok: [/cache/centos-6.qcow2c.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.heYCoj/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.heYCoj/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004090", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:10.803481", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:29:10.799391" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.heYCoj/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.heYCoj/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003939", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:11.070825", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:29:11.066886" } 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/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:29:12 +0000 (0:00:00.722) 0:00:02.810 ********* included: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-6.qcow2c.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:29:12 +0000 (0:00:00.029) 0:00:02.839 ********* ok: [/cache/centos-6.qcow2c.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:29:12 +0000 (0:00:00.383) 0:00:03.223 ********* skipping: [/cache/centos-6.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-6.qcow2c.snap] => (item=CentOS_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/tmptgthu93e/tests/roles/linux-system-roles.ssh/vars/CentOS_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml" } skipping: [/cache/centos-6.qcow2c.snap] => (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.ssh : Ensure required packages are installed] ********* task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:29:12 +0000 (0:00:00.056) 0:00:03.279 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-124.el6_10.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:29:13 +0000 (0:00:00.487) 0:00:03.766 ********* skipping: [/cache/centos-6.qcow2c.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/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:29:13 +0000 (0:00:00.025) 0:00:03.792 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:29:13 +0000 (0:00:00.027) 0:00:03.819 ********* ok: [/cache/centos-6.qcow2c.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/centos-6.qcow2c.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_default.yml:18 Thursday 21 July 2022 20:29:14 +0000 (0:00:00.941) 0:00:04.760 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmptgthu93e/tests/tests_default.yml:25 Thursday 21 July 2022 20:29:14 +0000 (0:00:00.726) 0:00:05.487 ********* included: /tmp/tmptgthu93e/tests/tasks/restore.yml for /cache/centos-6.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:29:14 +0000 (0:00:00.033) 0:00:05.520 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.heYCoj//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.heYCoj//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.003976", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:14.177143", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:29:14.173167" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.heYCoj//etc/ssh_config; then\n cp /tmp/ansible.heYCoj//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.003924", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:14.435156", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:29:14.431232" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:29:15 +0000 (0:00:00.623) 0:00:06.143 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.heYCoj", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:29:15 +0000 (0:00:00.327) 0:00:06.471 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmptgthu93e/tests/tests_default.yml:2 ------------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 0.94s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 0.73s /tmp/tmptgthu93e/tests/tests_default.yml:18 ----------------------------------- Backup files ------------------------------------------------------------ 0.72s /tmp/tmptgthu93e/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.62s /tmp/tmptgthu93e/tests/tasks/restore.yml:2 ------------------------------------ Make sure openssh is installed before creating backup ------------------- 0.59s /tmp/tmptgthu93e/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 0.49s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.38s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.37s /tmp/tmptgthu93e/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.33s /tmp/tmptgthu93e/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Setup ------------------------------------------------------------------- 0.05s /tmp/tmptgthu93e/tests/tasks/backup.yml:2 ------------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tests_default.yml:25 ----------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tests_default.yml:9 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmptgthu93e/tests/tasks/setup.yml:2 -------------------------------------- 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/tmpharb6qhc 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/tmpyajtit7a/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:30:45 +0000 (0:00:00.013) 0:00:00.013 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:30:46 +0000 (0:00:01.002) 0:00:01.015 ********* included: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml for /cache/centos-6.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:30:46 +0000 (0:00:00.032) 0:00:01.047 ********* included: /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml for /cache/centos-6.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:30:46 +0000 (0:00:00.051) 0:00:01.099 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:30:46 +0000 (0:00:00.023) 0:00:01.122 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:30:46 +0000 (0:00:00.600) 0:00:01.723 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.RntEM7", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:30:47 +0000 (0:00:00.359) 0:00:02.082 ********* ok: [/cache/centos-6.qcow2c.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.RntEM7/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.RntEM7/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003706", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:30:47.376540", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:30:47.372834" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.RntEM7/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.RntEM7/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003850", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:30:47.633872", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:30:47.630022" } 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/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:30:47 +0000 (0:00:00.701) 0:00:02.783 ********* included: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-6.qcow2c.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:30:48 +0000 (0:00:00.032) 0:00:02.816 ********* ok: [/cache/centos-6.qcow2c.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:30:48 +0000 (0:00:00.395) 0:00:03.211 ********* skipping: [/cache/centos-6.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-6.qcow2c.snap] => (item=CentOS_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/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.10.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:30:48 +0000 (0:00:00.054) 0:00:03.266 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-124.el6_10.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-124.el6_10.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/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:30:48 +0000 (0:00:00.471) 0:00:03.738 ********* skipping: [/cache/centos-6.qcow2c.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/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:30:48 +0000 (0:00:00.026) 0:00:03.765 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:30:49 +0000 (0:00:00.025) 0:00:03.790 ********* ok: [/cache/centos-6.qcow2c.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/centos-6.qcow2c.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:30:49 +0000 (0:00:00.986) 0:00:04.777 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:30:50 +0000 (0:00:00.697) 0:00:05.475 ********* included: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml for /cache/centos-6.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:30:50 +0000 (0:00:00.027) 0:00:05.503 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.RntEM7//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.RntEM7//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.003905", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:30:50.734864", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:30:50.730959" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.RntEM7//etc/ssh_config; then\n cp /tmp/ansible.RntEM7//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.003971", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:30:50.996486", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:30:50.992515" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:30:51 +0000 (0:00:00.632) 0:00:06.135 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.RntEM7", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:30:51 +0000 (0:00:00.316) 0:00:06.452 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.99s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.70s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.70s /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:18 ------------------------------- Restore backed up files and remove what was not present ----------------- 0.63s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:2 -------------------------------- Make sure openssh is installed before creating backup ------------------- 0.60s /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.47s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.40s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.36s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.32s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Setup ------------------------------------------------------------------- 0.05s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:9 -------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_default.yml:25 ------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpharb6qhc/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/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:2 ----------------------------------