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/tmpb2a4zynw 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/tmp507tgphv/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp507tgphv/tests/tests_default.yml:2 Thursday 21 July 2022 20:32:23 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp507tgphv/tests/tests_default.yml:9 Thursday 21 July 2022 20:32:24 +0000 (0:00:01.100) 0:00:01.112 ********* included: /tmp/tmp507tgphv/tests/tasks/backup.yml for /cache/fedora-35.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp507tgphv/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:32:24 +0000 (0:00:00.027) 0:00:01.139 ********* included: /tmp/tmp507tgphv/tests/tasks/setup.yml for /cache/fedora-35.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp507tgphv/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:32:24 +0000 (0:00:00.026) 0:00:01.166 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp507tgphv/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:32:24 +0000 (0:00:00.043) 0:00:01.210 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp507tgphv/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:32:26 +0000 (0:00:01.938) 0:00:03.149 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.mhw018sw", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp507tgphv/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:32:27 +0000 (0:00:00.508) 0:00:03.658 ********* ok: [/cache/fedora-35.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.mhw018sw/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.mhw018sw/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004220", "end": "2022-07-21 20:32:27.176914", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:32:27.172694" } ok: [/cache/fedora-35.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.mhw018sw/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.mhw018sw/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003860", "end": "2022-07-21 20:32:27.554137", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:32:27.550277" } 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/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:32:28 +0000 (0:00:00.918) 0:00:04.577 ********* included: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:32:28 +0000 (0:00:00.025) 0:00:04.602 ********* ok: [/cache/fedora-35.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:32:28 +0000 (0:00:00.524) 0:00:05.127 ********* skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-35.qcow2.snap] => (item=Fedora.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/tmp507tgphv/tests/roles/linux-system-roles.ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:32:28 +0000 (0:00:00.050) 0:00:05.177 ********* ok: [/cache/fedora-35.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/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:32:30 +0000 (0:00:01.940) 0:00:07.118 ********* skipping: [/cache/fedora-35.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/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:32:30 +0000 (0:00:00.031) 0:00:07.150 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:32:30 +0000 (0:00:00.026) 0:00:07.176 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "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/fedora-35.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp507tgphv/tests/tests_default.yml:18 Thursday 21 July 2022 20:32:32 +0000 (0:00:01.206) 0:00:08.383 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmp507tgphv/tests/tests_default.yml:25 Thursday 21 July 2022 20:32:32 +0000 (0:00:00.865) 0:00:09.248 ********* included: /tmp/tmp507tgphv/tests/tasks/restore.yml for /cache/fedora-35.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp507tgphv/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:32:32 +0000 (0:00:00.029) 0:00:09.278 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.mhw018sw//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.mhw018sw//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.003863", "end": "2022-07-21 20:32:32.713113", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:32:32.709250" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.mhw018sw//etc/ssh_config; then\n cp /tmp/ansible.mhw018sw//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.003714", "end": "2022-07-21 20:32:33.104837", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:32:33.101123" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp507tgphv/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:32:33 +0000 (0:00:00.820) 0:00:10.099 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.mhw018sw", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:32:34 +0000 (0:00:00.388) 0:00:10.487 ********* =============================================================================== linux-system-roles.ssh : Ensure required packages are installed --------- 1.94s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Make sure openssh is installed before creating backup ------------------- 1.94s /tmp/tmp507tgphv/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.21s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.10s /tmp/tmp507tgphv/tests/tests_default.yml:2 ------------------------------------ Backup files ------------------------------------------------------------ 0.92s /tmp/tmp507tgphv/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmp507tgphv/tests/tests_default.yml:18 ----------------------------------- Restore backed up files and remove what was not present ----------------- 0.82s /tmp/tmp507tgphv/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.52s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmp507tgphv/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.39s /tmp/tmp507tgphv/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Ensure facts used by test ----------------------------------------------- 0.04s /tmp/tmp507tgphv/tests/tasks/setup.yml:2 -------------------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_default.yml:25 ----------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_default.yml:9 ------------------------------------ Setup ------------------------------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.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/tmpb2a4zynw 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/tmpdljjmvxt/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:35:13 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:35:14 +0000 (0:00:01.094) 0:00:01.108 ********* included: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml for /cache/fedora-35.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:35:14 +0000 (0:00:00.028) 0:00:01.136 ********* included: /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml for /cache/fedora-35.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:35:14 +0000 (0:00:00.025) 0:00:01.162 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:35:14 +0000 (0:00:00.021) 0:00:01.183 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:35:16 +0000 (0:00:01.896) 0:00:03.080 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.jca1ithk", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:35:17 +0000 (0:00:00.508) 0:00:03.588 ********* ok: [/cache/fedora-35.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.jca1ithk/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.jca1ithk/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003865", "end": "2022-07-21 20:35:17.331818", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:17.327953" } ok: [/cache/fedora-35.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.jca1ithk/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.jca1ithk/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003338", "end": "2022-07-21 20:35:17.688054", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:35:17.684716" } 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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:35:18 +0000 (0:00:00.895) 0:00:04.483 ********* included: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:35:18 +0000 (0:00:00.029) 0:00:04.513 ********* ok: [/cache/fedora-35.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:35:18 +0000 (0:00:00.546) 0:00:05.060 ********* skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-35.qcow2.snap] => (item=Fedora.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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:35:18 +0000 (0:00:00.053) 0:00:05.113 ********* ok: [/cache/fedora-35.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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:35:20 +0000 (0:00:01.858) 0:00:06.972 ********* skipping: [/cache/fedora-35.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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:35:20 +0000 (0:00:00.025) 0:00:06.998 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:35:20 +0000 (0:00:00.024) 0:00:07.023 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "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/fedora-35.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:35:21 +0000 (0:00:01.072) 0:00:08.095 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:35:22 +0000 (0:00:00.779) 0:00:08.874 ********* included: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml for /cache/fedora-35.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:35:22 +0000 (0:00:00.027) 0:00:08.901 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.jca1ithk//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.jca1ithk//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.003275", "end": "2022-07-21 20:35:22.560292", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:22.557017" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.jca1ithk//etc/ssh_config; then\n cp /tmp/ansible.jca1ithk//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.003375", "end": "2022-07-21 20:35:22.916079", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:35:22.912704" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:35:23 +0000 (0:00:00.783) 0:00:09.685 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.jca1ithk", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:35:23 +0000 (0:00:00.400) 0:00:10.086 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.90s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.86s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.09s /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.07s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.90s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:13 -------------------------------- Restore backed up files and remove what was not present ----------------- 0.78s /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:2 -------------------------------- Gathering Facts --------------------------------------------------------- 0.78s /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:18 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.55s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.40s /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpb2a4zynw/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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:9 -------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_default.yml:25 ------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Setup ------------------------------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:2 ----------------------------------