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/tmpond44ouu 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/tmpkp2113mn/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpkp2113mn/tests/tests_default.yml:2 Thursday 21 July 2022 20:14:24 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpkp2113mn/tests/tests_default.yml:9 Thursday 21 July 2022 20:14:25 +0000 (0:00:00.983) 0:00:00.996 ********* included: /tmp/tmpkp2113mn/tests/tasks/backup.yml for /cache/centos-7.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpkp2113mn/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:14:25 +0000 (0:00:00.025) 0:00:01.022 ********* included: /tmp/tmpkp2113mn/tests/tasks/setup.yml for /cache/centos-7.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpkp2113mn/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:14:25 +0000 (0:00:00.025) 0:00:01.047 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpkp2113mn/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:14:25 +0000 (0:00:00.021) 0:00:01.068 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpkp2113mn/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:14:26 +0000 (0:00:00.636) 0:00:01.705 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.EOddx5", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpkp2113mn/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:14:26 +0000 (0:00:00.396) 0:00:02.101 ********* ok: [/cache/centos-7.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.EOddx5/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.EOddx5/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004618", "end": "2022-07-21 20:14:26.024465", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:14:26.019847" } ok: [/cache/centos-7.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.EOddx5/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.EOddx5/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003783", "end": "2022-07-21 20:14:26.355436", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:14:26.351653" } 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/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:14:27 +0000 (0:00:00.777) 0:00:02.879 ********* included: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:14:27 +0000 (0:00:00.025) 0:00:02.905 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:14:27 +0000 (0:00:00.399) 0:00:03.305 ********* skipping: [/cache/centos-7.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.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" ] } } }, "ansible_included_var_files": [ "/tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:14:27 +0000 (0:00:00.052) 0:00:03.357 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-7.4p1-22.el7_9.x86_64 providing openssh is already installed", "openssh-clients-7.4p1-22.el7_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/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:14:28 +0000 (0:00:00.504) 0:00:03.861 ********* skipping: [/cache/centos-7.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/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:14:28 +0000 (0:00:00.024) 0:00:03.886 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:14:28 +0000 (0:00:00.022) 0:00:03.909 ********* ok: [/cache/centos-7.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-7.qcow2c.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpkp2113mn/tests/tests_default.yml:18 Thursday 21 July 2022 20:14:29 +0000 (0:00:00.939) 0:00:04.849 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpkp2113mn/tests/tests_default.yml:25 Thursday 21 July 2022 20:14:30 +0000 (0:00:00.688) 0:00:05.537 ********* included: /tmp/tmpkp2113mn/tests/tasks/restore.yml for /cache/centos-7.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpkp2113mn/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:14:30 +0000 (0:00:00.026) 0:00:05.564 ********* ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.EOddx5//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.EOddx5//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.004033", "end": "2022-07-21 20:14:29.388236", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:14:29.384203" } ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.EOddx5//etc/ssh_config; then\n cp /tmp/ansible.EOddx5//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.004253", "end": "2022-07-21 20:14:29.665383", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:14:29.661130" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpkp2113mn/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:14:30 +0000 (0:00:00.601) 0:00:06.165 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.EOddx5", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:14:31 +0000 (0:00:00.334) 0:00:06.500 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmpkp2113mn/tests/tests_default.yml:2 ------------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 0.94s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Backup files ------------------------------------------------------------ 0.78s /tmp/tmpkp2113mn/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmpkp2113mn/tests/tests_default.yml:18 ----------------------------------- Make sure openssh is installed before creating backup ------------------- 0.64s /tmp/tmpkp2113mn/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.60s /tmp/tmpkp2113mn/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.50s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.40s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.40s /tmp/tmpkp2113mn/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.33s /tmp/tmpkp2113mn/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Restore configuration files --------------------------------------------- 0.03s /tmp/tmpkp2113mn/tests/tests_default.yml:25 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpkp2113mn/tests/tests_default.yml:9 ------------------------------------ Setup ------------------------------------------------------------------- 0.03s /tmp/tmpkp2113mn/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpkp2113mn/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/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpkp2113mn/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/tmpond44ouu 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/tmp3c63ut4b/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:16:17 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:16:18 +0000 (0:00:01.001) 0:00:01.014 ********* included: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml for /cache/centos-7.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:16:18 +0000 (0:00:00.028) 0:00:01.042 ********* included: /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml for /cache/centos-7.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:16:18 +0000 (0:00:00.024) 0:00:01.067 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:16:18 +0000 (0:00:00.021) 0:00:01.088 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:16:18 +0000 (0:00:00.656) 0:00:01.745 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.3uHuS7", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:16:19 +0000 (0:00:00.384) 0:00:02.130 ********* ok: [/cache/centos-7.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.3uHuS7/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.3uHuS7/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003886", "end": "2022-07-21 20:16:19.501716", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:16:19.497830" } ok: [/cache/centos-7.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.3uHuS7/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.3uHuS7/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003841", "end": "2022-07-21 20:16:19.825695", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:16:19.821854" } 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/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:16:20 +0000 (0:00:00.756) 0:00:02.887 ********* included: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:16:20 +0000 (0:00:00.028) 0:00:02.915 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:16:20 +0000 (0:00:00.407) 0:00:03.323 ********* skipping: [/cache/centos-7.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.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" ] } } }, "ansible_included_var_files": [ "/tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:16:20 +0000 (0:00:00.055) 0:00:03.378 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-7.4p1-22.el7_9.x86_64 providing openssh is already installed", "openssh-clients-7.4p1-22.el7_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/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:16:21 +0000 (0:00:00.513) 0:00:03.892 ********* skipping: [/cache/centos-7.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/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:16:21 +0000 (0:00:00.024) 0:00:03.917 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:16:21 +0000 (0:00:00.025) 0:00:03.942 ********* ok: [/cache/centos-7.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-7.qcow2c.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:16:22 +0000 (0:00:00.917) 0:00:04.860 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:16:22 +0000 (0:00:00.707) 0:00:05.567 ********* included: /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml for /cache/centos-7.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:16:22 +0000 (0:00:00.026) 0:00:05.593 ********* ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.3uHuS7//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.3uHuS7//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.003957", "end": "2022-07-21 20:16:22.890093", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:16:22.886136" } ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.3uHuS7//etc/ssh_config; then\n cp /tmp/ansible.3uHuS7//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.004035", "end": "2022-07-21 20:16:23.174036", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:16:23.170001" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:16:23 +0000 (0:00:00.615) 0:00:06.209 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.3uHuS7", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:16:23 +0000 (0:00:00.317) 0:00:06.527 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.92s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.76s /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.71s /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:18 ------------------------------- Make sure openssh is installed before creating backup ------------------- 0.66s /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.62s /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.51s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.41s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.38s /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.32s /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmpond44ouu/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/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:9 -------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp3c63ut4b/tests/ssh/tests_default.yml:25 ------------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Setup ------------------------------------------------------------------- 0.02s /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:2 --------------------------------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:2 ----------------------------------