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/tmpn177r5cy 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Thursday 21 July 2022 20:01:39 +0000 (0:00:00.017) 0:00:00.017 ********* ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:01:40 +0000 (0:00:01.312) 0:00:01.329 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmprk79jc_d/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmprk79jc_d/tests/tests_default.yml:2 Thursday 21 July 2022 20:01:40 +0000 (0:00:00.036) 0:00:01.366 ********* ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmprk79jc_d/tests/tests_default.yml:9 Thursday 21 July 2022 20:01:41 +0000 (0:00:01.018) 0:00:02.384 ********* included: /tmp/tmprk79jc_d/tests/tasks/backup.yml for /cache/rhel-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmprk79jc_d/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:01:41 +0000 (0:00:00.026) 0:00:02.411 ********* included: /tmp/tmprk79jc_d/tests/tasks/setup.yml for /cache/rhel-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmprk79jc_d/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:01:41 +0000 (0:00:00.026) 0:00:02.437 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmprk79jc_d/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:01:41 +0000 (0:00:00.020) 0:00:02.457 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmprk79jc_d/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:01:43 +0000 (0:00:01.402) 0:00:03.860 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.32t51mc7", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmprk79jc_d/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:01:43 +0000 (0:00:00.498) 0:00:04.359 ********* ok: [/cache/rhel-8.qcow2] => (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.32t51mc7/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.32t51mc7/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003751", "end": "2022-07-21 16:01:43.141767", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:01:43.138016" } ok: [/cache/rhel-8.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.32t51mc7/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.32t51mc7/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003633", "end": "2022-07-21 16:01:43.503182", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:01:43.499549" } 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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:01:44 +0000 (0:00:00.900) 0:00:05.259 ********* included: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:01:44 +0000 (0:00:00.027) 0:00:05.287 ********* ok: [/cache/rhel-8.qcow2] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:01:45 +0000 (0:00:00.518) 0:00:05.805 ********* skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8.qcow2] => (item=RedHat_8.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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.6.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.6.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:01:45 +0000 (0:00:00.050) 0:00:05.856 ********* ok: [/cache/rhel-8.qcow2] => { "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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:01:46 +0000 (0:00:01.320) 0:00:07.176 ********* skipping: [/cache/rhel-8.qcow2] => { "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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:01:46 +0000 (0:00:00.029) 0:00:07.206 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:01:46 +0000 (0:00:00.032) 0:00:07.238 ********* ok: [/cache/rhel-8.qcow2] => { "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-8.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmprk79jc_d/tests/tests_default.yml:18 Thursday 21 July 2022 20:01:47 +0000 (0:00:01.071) 0:00:08.310 ********* ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmprk79jc_d/tests/tests_default.yml:25 Thursday 21 July 2022 20:01:48 +0000 (0:00:00.796) 0:00:09.106 ********* included: /tmp/tmprk79jc_d/tests/tasks/restore.yml for /cache/rhel-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmprk79jc_d/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:01:48 +0000 (0:00:00.025) 0:00:09.132 ********* ok: [/cache/rhel-8.qcow2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.32t51mc7//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.32t51mc7//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.003182", "end": "2022-07-21 16:01:47.792805", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:01:47.789623" } ok: [/cache/rhel-8.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.32t51mc7//etc/ssh_config; then\n cp /tmp/ansible.32t51mc7//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.003325", "end": "2022-07-21 16:01:48.175699", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:01:48.172374" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmprk79jc_d/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:01:49 +0000 (0:00:00.772) 0:00:09.904 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "path": "/tmp/ansible.32t51mc7", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=16 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:01:49 +0000 (0:00:00.398) 0:00:10.302 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.40s /tmp/tmprk79jc_d/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.32s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.07s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmprk79jc_d/tests/tests_default.yml:2 ------------------------------------ Backup files ------------------------------------------------------------ 0.90s /tmp/tmprk79jc_d/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmprk79jc_d/tests/tests_default.yml:18 ----------------------------------- Restore backed up files and remove what was not present ----------------- 0.77s /tmp/tmprk79jc_d/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.52s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.50s /tmp/tmprk79jc_d/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.40s /tmp/tmprk79jc_d/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmprk79jc_d/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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_default.yml:9 ------------------------------------ Setup ------------------------------------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tasks/backup.yml:2 ------------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_default.yml:25 ----------------------------------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmprk79jc_d/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/tmpn177r5cy 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Thursday 21 July 2022 20:04:39 +0000 (0:00:00.017) 0:00:00.017 ********* ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:04:40 +0000 (0:00:01.285) 0:00:01.303 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:04:40 +0000 (0:00:00.018) 0:00:01.322 ********* ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:04:42 +0000 (0:00:02.041) 0:00:03.364 ********* included: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml for /cache/rhel-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:04:42 +0000 (0:00:00.026) 0:00:03.390 ********* included: /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml for /cache/rhel-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:04:42 +0000 (0:00:00.024) 0:00:03.415 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:04:42 +0000 (0:00:00.021) 0:00:03.437 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:04:43 +0000 (0:00:01.412) 0:00:04.849 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.qbe2x05e", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:04:44 +0000 (0:00:00.495) 0:00:05.344 ********* ok: [/cache/rhel-8.qcow2] => (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.qbe2x05e/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.qbe2x05e/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003815", "end": "2022-07-21 16:04:44.801206", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:04:44.797391" } ok: [/cache/rhel-8.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.qbe2x05e/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.qbe2x05e/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003958", "end": "2022-07-21 16:04:45.178738", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:04:45.174780" } 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/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:04:45 +0000 (0:00:00.925) 0:00:06.269 ********* included: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:04:45 +0000 (0:00:00.027) 0:00:06.297 ********* ok: [/cache/rhel-8.qcow2] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:04:45 +0000 (0:00:00.517) 0:00:06.814 ********* skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8.qcow2] => (item=RedHat_8.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/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.6.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.6.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:04:45 +0000 (0:00:00.053) 0:00:06.867 ********* ok: [/cache/rhel-8.qcow2] => { "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/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:04:47 +0000 (0:00:01.288) 0:00:08.156 ********* skipping: [/cache/rhel-8.qcow2] => { "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/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:04:47 +0000 (0:00:00.029) 0:00:08.185 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:04:47 +0000 (0:00:00.024) 0:00:08.210 ********* ok: [/cache/rhel-8.qcow2] => { "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-8.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:04:48 +0000 (0:00:01.079) 0:00:09.290 ********* ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:04:49 +0000 (0:00:00.809) 0:00:10.099 ********* included: /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml for /cache/rhel-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:04:49 +0000 (0:00:00.024) 0:00:10.124 ********* ok: [/cache/rhel-8.qcow2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.qbe2x05e//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.qbe2x05e//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.003525", "end": "2022-07-21 16:04:49.457065", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:04:49.453540" } ok: [/cache/rhel-8.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.qbe2x05e//etc/ssh_config; then\n cp /tmp/ansible.qbe2x05e//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.003306", "end": "2022-07-21 16:04:49.801555", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:04:49.798249" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:04:49 +0000 (0:00:00.735) 0:00:10.860 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "path": "/tmp/ansible.qbe2x05e", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=16 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:04:50 +0000 (0:00:00.374) 0:00:11.234 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 2.04s /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:2 -------------------------------- Make sure openssh is installed before creating backup ------------------- 1.41s /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.29s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.08s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.93s /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:18 ------------------------------- Restore backed up files and remove what was not present ----------------- 0.74s /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.52s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.50s /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.37s /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:9 -------------------------------- Restore configuration files --------------------------------------------- 0.02s /tmp/tmpl5tsfk0r/tests/ssh/tests_default.yml:25 ------------------------------- Setup ------------------------------------------------------------------- 0.02s /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:2 ----------------------------------