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/tmp0677phw8 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-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Thursday 21 July 2022 20:08:13 +0000 (0:00:00.018) 0:00:00.018 ********* ok: [/cache/rhel-7.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-7.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-7.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-7.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-7.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-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:08:14 +0000 (0:00:01.332) 0:00:01.351 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.33s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmpwdhrsu3c/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_default.yml:2 Thursday 21 July 2022 20:08:14 +0000 (0:00:00.033) 0:00:01.384 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpwdhrsu3c/tests/tests_default.yml:9 Thursday 21 July 2022 20:08:15 +0000 (0:00:00.896) 0:00:02.281 ********* included: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml for /cache/rhel-7.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:08:15 +0000 (0:00:00.027) 0:00:02.308 ********* included: /tmp/tmpwdhrsu3c/tests/tasks/setup.yml for /cache/rhel-7.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpwdhrsu3c/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:08:15 +0000 (0:00:00.024) 0:00:02.332 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpwdhrsu3c/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:08:15 +0000 (0:00:00.019) 0:00:02.351 ********* ok: [/cache/rhel-7.qcow2] => { "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/tmpwdhrsu3c/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:08:16 +0000 (0:00:00.640) 0:00:02.992 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.OA4Ujr", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:08:16 +0000 (0:00:00.401) 0:00:03.394 ********* ok: [/cache/rhel-7.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.OA4Ujr/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.OA4Ujr/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003839", "end": "2022-07-21 16:08:17.136109", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:08:17.132270" } ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.OA4Ujr/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.OA4Ujr/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.004714", "end": "2022-07-21 16:08:17.426072", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:08:17.421358" } 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/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:08:17 +0000 (0:00:00.750) 0:00:04.144 ********* included: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:08:17 +0000 (0:00:00.025) 0:00:04.169 ********* ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:08:17 +0000 (0:00:00.404) 0:00:04.573 ********* skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-7.qcow2] => (item=RedHat_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/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:08:17 +0000 (0:00:00.051) 0:00:04.625 ********* ok: [/cache/rhel-7.qcow2] => { "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/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:08:18 +0000 (0:00:00.511) 0:00:05.137 ********* skipping: [/cache/rhel-7.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/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:08:18 +0000 (0:00:00.024) 0:00:05.162 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:08:18 +0000 (0:00:00.023) 0:00:05.185 ********* ok: [/cache/rhel-7.qcow2] => { "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/rhel-7.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_default.yml:18 Thursday 21 July 2022 20:08:19 +0000 (0:00:00.931) 0:00:06.117 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_default.yml:25 Thursday 21 July 2022 20:08:19 +0000 (0:00:00.693) 0:00:06.810 ********* included: /tmp/tmpwdhrsu3c/tests/tasks/restore.yml for /cache/rhel-7.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:08:19 +0000 (0:00:00.027) 0:00:06.838 ********* ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.OA4Ujr//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.OA4Ujr//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.003813", "end": "2022-07-21 16:08:20.466099", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:08:20.462286" } ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.OA4Ujr//etc/ssh_config; then\n cp /tmp/ansible.OA4Ujr//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.003645", "end": "2022-07-21 16:08:20.741602", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:08:20.737957" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:08:20 +0000 (0:00:00.593) 0:00:07.431 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "path": "/tmp/ansible.OA4Ujr", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=16 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:08:20 +0000 (0:00:00.317) 0:00:07.749 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.33s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 0.93s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmpwdhrsu3c/tests/tests_default.yml:2 ------------------------------------ Backup files ------------------------------------------------------------ 0.75s /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmpwdhrsu3c/tests/tests_default.yml:18 ----------------------------------- Make sure openssh is installed before creating backup ------------------- 0.64s /tmp/tmpwdhrsu3c/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.59s /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.51s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.40s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.40s /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.32s /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Restore configuration files --------------------------------------------- 0.03s /tmp/tmpwdhrsu3c/tests/tests_default.yml:25 ----------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpwdhrsu3c/tests/tests_default.yml:9 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- Setup ------------------------------------------------------------------- 0.02s /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpwdhrsu3c/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/tmp0677phw8 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-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Thursday 21 July 2022 20:10:25 +0000 (0:00:00.018) 0:00:00.018 ********* ok: [/cache/rhel-7.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-7.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-7.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-7.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-7.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-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:10:26 +0000 (0:00:01.395) 0:00:01.414 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:10:26 +0000 (0:00:00.017) 0:00:01.432 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:10:27 +0000 (0:00:00.916) 0:00:02.348 ********* included: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml for /cache/rhel-7.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:10:27 +0000 (0:00:00.025) 0:00:02.373 ********* included: /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml for /cache/rhel-7.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:10:27 +0000 (0:00:00.025) 0:00:02.398 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:10:27 +0000 (0:00:00.022) 0:00:02.421 ********* ok: [/cache/rhel-7.qcow2] => { "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/tmpxz37r5cb/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:10:28 +0000 (0:00:00.643) 0:00:03.064 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.Vf1qmW", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:10:28 +0000 (0:00:00.419) 0:00:03.483 ********* ok: [/cache/rhel-7.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.Vf1qmW/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.Vf1qmW/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004009", "end": "2022-07-21 16:10:29.180282", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:10:29.176273" } ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.Vf1qmW/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.Vf1qmW/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003668", "end": "2022-07-21 16:10:29.462695", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:10:29.459027" } 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/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:10:29 +0000 (0:00:00.746) 0:00:04.230 ********* included: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:10:29 +0000 (0:00:00.026) 0:00:04.256 ********* ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:10:29 +0000 (0:00:00.393) 0:00:04.650 ********* skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-7.qcow2] => (item=RedHat_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/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:10:29 +0000 (0:00:00.049) 0:00:04.699 ********* ok: [/cache/rhel-7.qcow2] => { "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/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:10:30 +0000 (0:00:00.478) 0:00:05.178 ********* skipping: [/cache/rhel-7.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/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:10:30 +0000 (0:00:00.025) 0:00:05.203 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:10:30 +0000 (0:00:00.024) 0:00:05.228 ********* ok: [/cache/rhel-7.qcow2] => { "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/rhel-7.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:10:31 +0000 (0:00:00.937) 0:00:06.165 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:10:32 +0000 (0:00:00.695) 0:00:06.860 ********* included: /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml for /cache/rhel-7.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:10:32 +0000 (0:00:00.026) 0:00:06.886 ********* ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.Vf1qmW//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.Vf1qmW//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.003770", "end": "2022-07-21 16:10:32.497301", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:10:32.493531" } ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.Vf1qmW//etc/ssh_config; then\n cp /tmp/ansible.Vf1qmW//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.004037", "end": "2022-07-21 16:10:32.779000", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 16:10:32.774963" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:10:32 +0000 (0:00:00.634) 0:00:07.521 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "path": "/tmp/ansible.Vf1qmW", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=16 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:10:33 +0000 (0:00:00.322) 0:00:07.844 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.94s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.92s /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:2 -------------------------------- Backup files ------------------------------------------------------------ 0.75s /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.70s /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:18 ------------------------------- Make sure openssh is installed before creating backup ------------------- 0.64s /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.63s /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.48s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Create a temporary directory for backup files --------------------------- 0.42s /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:5 --------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.39s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.32s /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:25 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tests_default.yml:9 -------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:2 ----------------------------------