ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp08vsdpvi executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmposga18ev/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmposga18ev/tests/tests_default.yml:2 Thursday 21 July 2022 20:23:02 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmposga18ev/tests/tests_default.yml:9 Thursday 21 July 2022 20:23:03 +0000 (0:00:01.088) 0:00:01.101 ********* included: /tmp/tmposga18ev/tests/tasks/backup.yml for /cache/rhel-9.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmposga18ev/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:23:03 +0000 (0:00:00.026) 0:00:01.128 ********* included: /tmp/tmposga18ev/tests/tasks/setup.yml for /cache/rhel-9.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmposga18ev/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:23:03 +0000 (0:00:00.025) 0:00:01.153 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmposga18ev/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:23:03 +0000 (0:00:00.020) 0:00:01.173 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmposga18ev/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:23:04 +0000 (0:00:00.955) 0:00:02.128 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.dzlaxeae", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmposga18ev/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:23:04 +0000 (0:00:00.438) 0:00:02.567 ********* ok: [/cache/rhel-9.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.dzlaxeae/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.dzlaxeae/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003088", "end": "2022-07-21 16:23:04.154484", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:23:04.151396" } ok: [/cache/rhel-9.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.dzlaxeae/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.dzlaxeae/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003266", "end": "2022-07-21 16:23:04.504740", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:23:04.501474" } 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/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:23:05 +0000 (0:00:00.881) 0:00:03.449 ********* included: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:23:05 +0000 (0:00:00.026) 0:00:03.475 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:23:06 +0000 (0:00:00.502) 0:00:03.977 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:23:06 +0000 (0:00:00.052) 0:00:04.030 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:23:07 +0000 (0:00:00.803) 0:00:04.833 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:23:07 +0000 (0:00:00.025) 0:00:04.858 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:23:07 +0000 (0:00:00.024) 0:00:04.883 ********* ok: [/cache/rhel-9.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/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmposga18ev/tests/tests_default.yml:18 Thursday 21 July 2022 20:23:08 +0000 (0:00:01.031) 0:00:05.915 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmposga18ev/tests/tests_default.yml:25 Thursday 21 July 2022 20:23:08 +0000 (0:00:00.800) 0:00:06.715 ********* included: /tmp/tmposga18ev/tests/tasks/restore.yml for /cache/rhel-9.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmposga18ev/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:23:09 +0000 (0:00:00.026) 0:00:06.742 ********* ok: [/cache/rhel-9.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.dzlaxeae//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.dzlaxeae//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.003031", "end": "2022-07-21 16:23:08.248291", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:23:08.245260" } ok: [/cache/rhel-9.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.dzlaxeae//etc/ssh_config; then\n cp /tmp/ansible.dzlaxeae//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.003051", "end": "2022-07-21 16:23:08.587772", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:23:08.584721" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmposga18ev/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:23:09 +0000 (0:00:00.761) 0:00:07.504 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.dzlaxeae", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:23:10 +0000 (0:00:00.371) 0:00:07.875 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.09s /tmp/tmposga18ev/tests/tests_default.yml:2 ------------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 1.03s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Make sure openssh is installed before creating backup ------------------- 0.96s /tmp/tmposga18ev/tests/tasks/setup.yml:7 -------------------------------------- Backup files ------------------------------------------------------------ 0.88s /tmp/tmposga18ev/tests/tasks/backup.yml:13 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.80s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmposga18ev/tests/tests_default.yml:18 ----------------------------------- Restore backed up files and remove what was not present ----------------- 0.76s /tmp/tmposga18ev/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.50s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.44s /tmp/tmposga18ev/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.37s /tmp/tmposga18ev/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Restore configuration files --------------------------------------------- 0.03s /tmp/tmposga18ev/tests/tests_default.yml:25 ----------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmposga18ev/tests/tests_default.yml:9 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmposga18ev/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmposga18ev/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmposga18ev/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/tmp08vsdpvi executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:25:19 +0000 (0:00:00.012) 0:00:00.013 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:25:21 +0000 (0:00:01.090) 0:00:01.103 ********* included: /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml for /cache/rhel-9.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:25:21 +0000 (0:00:00.028) 0:00:01.132 ********* included: /tmp/tmpbvj7axe_/tests/ssh/tasks/setup.yml for /cache/rhel-9.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:25:21 +0000 (0:00:00.024) 0:00:01.157 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:25:21 +0000 (0:00:00.021) 0:00:01.178 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:25:22 +0000 (0:00:00.992) 0:00:02.171 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.s645htdx", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:25:22 +0000 (0:00:00.458) 0:00:02.629 ********* ok: [/cache/rhel-9.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.s645htdx/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.s645htdx/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.002955", "end": "2022-07-21 16:25:21.891841", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:25:21.888886" } ok: [/cache/rhel-9.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.s645htdx/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.s645htdx/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.002966", "end": "2022-07-21 16:25:22.218524", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:25:22.215558" } 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/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:25:23 +0000 (0:00:00.840) 0:00:03.470 ********* included: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:25:23 +0000 (0:00:00.029) 0:00:03.500 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:25:23 +0000 (0:00:00.501) 0:00:04.002 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:25:23 +0000 (0:00:00.050) 0:00:04.053 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:25:24 +0000 (0:00:00.882) 0:00:04.935 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:25:24 +0000 (0:00:00.026) 0:00:04.961 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:25:24 +0000 (0:00:00.024) 0:00:04.986 ********* ok: [/cache/rhel-9.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/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:25:25 +0000 (0:00:01.057) 0:00:06.044 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:25:26 +0000 (0:00:00.813) 0:00:06.858 ********* included: /tmp/tmpbvj7axe_/tests/ssh/tasks/restore.yml for /cache/rhel-9.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:25:26 +0000 (0:00:00.027) 0:00:06.886 ********* ok: [/cache/rhel-9.qcow2.snap] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.s645htdx//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.s645htdx//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.003120", "end": "2022-07-21 16:25:26.065986", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:25:26.062866" } ok: [/cache/rhel-9.qcow2.snap] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.s645htdx//etc/ssh_config; then\n cp /tmp/ansible.s645htdx//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.002891", "end": "2022-07-21 16:25:26.452344", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:25:26.449453" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpbvj7axe_/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:25:27 +0000 (0:00:00.790) 0:00:07.676 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.s645htdx", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=15 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:25:27 +0000 (0:00:00.382) 0:00:08.059 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.09s /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.06s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Make sure openssh is installed before creating backup ------------------- 0.99s /tmp/tmpbvj7axe_/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.88s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Backup files ------------------------------------------------------------ 0.84s /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:18 ------------------------------- Restore backed up files and remove what was not present ----------------- 0.79s /tmp/tmpbvj7axe_/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.50s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.46s /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.38s /tmp/tmpbvj7axe_/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:9 -------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpbvj7axe_/tests/ssh/tests_default.yml:25 ------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Setup ------------------------------------------------------------------- 0.03s /tmp/tmpbvj7axe_/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmp08vsdpvi/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpbvj7axe_/tests/ssh/tasks/setup.yml:2 ----------------------------------