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/tmpppg9msr1 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Thursday 21 July 2022 20:33:45 +0000 (0:00:00.019) 0:00:00.019 ********* changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.217870", "end": "2022-07-21 20:33:46.150119", "rc": 0, "start": "2022-07-21 20:33:45.932249" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:33:46 +0000 (0:00:00.812) 0:00:00.832 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.81s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmptdmnrt7v/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_default.yml:2 Thursday 21 July 2022 20:33:46 +0000 (0:00:00.017) 0:00:00.849 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmptdmnrt7v/tests/tests_default.yml:9 Thursday 21 July 2022 20:33:47 +0000 (0:00:01.023) 0:00:01.873 ********* included: /tmp/tmptdmnrt7v/tests/tasks/backup.yml for /cache/centos-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmptdmnrt7v/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:33:47 +0000 (0:00:00.025) 0:00:01.898 ********* included: /tmp/tmptdmnrt7v/tests/tasks/setup.yml for /cache/centos-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmptdmnrt7v/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:33:47 +0000 (0:00:00.023) 0:00:01.922 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:33:47 +0000 (0:00:00.019) 0:00:01.941 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmptdmnrt7v/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:33:50 +0000 (0:00:02.290) 0:00:04.231 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.w7tg39cw", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:33:50 +0000 (0:00:00.475) 0:00:04.707 ********* ok: [/cache/centos-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.w7tg39cw/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.w7tg39cw/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004357", "end": "2022-07-21 20:33:50.427700", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:33:50.423343" } ok: [/cache/centos-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.w7tg39cw/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.w7tg39cw/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003118", "end": "2022-07-21 20:33:50.790562", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:33:50.787444" } 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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:33:51 +0000 (0:00:00.780) 0:00:05.487 ********* included: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:33:51 +0000 (0:00:00.024) 0:00:05.511 ********* ok: [/cache/centos-8.qcow2] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:33:51 +0000 (0:00:00.506) 0:00:06.018 ********* skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:33:52 +0000 (0:00:00.059) 0:00:06.077 ********* ok: [/cache/centos-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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:33:53 +0000 (0:00:01.781) 0:00:07.858 ********* skipping: [/cache/centos-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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:33:53 +0000 (0:00:00.024) 0:00:07.882 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:33:53 +0000 (0:00:00.025) 0:00:07.908 ********* ok: [/cache/centos-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/centos-8.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_default.yml:18 Thursday 21 July 2022 20:33:54 +0000 (0:00:01.058) 0:00:08.966 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmptdmnrt7v/tests/tests_default.yml:25 Thursday 21 July 2022 20:33:55 +0000 (0:00:00.783) 0:00:09.750 ********* included: /tmp/tmptdmnrt7v/tests/tasks/restore.yml for /cache/centos-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:33:55 +0000 (0:00:00.026) 0:00:09.777 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.w7tg39cw//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.w7tg39cw//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.002771", "end": "2022-07-21 20:33:55.495830", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:33:55.493059" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.w7tg39cw//etc/ssh_config; then\n cp /tmp/ansible.w7tg39cw//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.002919", "end": "2022-07-21 20:33:55.878399", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:33:55.875480" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:33:56 +0000 (0:00:00.775) 0:00:10.552 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.w7tg39cw", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:33:56 +0000 (0:00:00.386) 0:00:10.939 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.29s /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.78s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.06s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmptdmnrt7v/tests/tests_default.yml:2 ------------------------------------ Enable HA repos --------------------------------------------------------- 0.81s /cache/centos-8_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.78s /tmp/tmptdmnrt7v/tests/tests_default.yml:18 ----------------------------------- Backup files ------------------------------------------------------------ 0.78s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.78s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.51s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.39s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Restore configuration files --------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_default.yml:25 ----------------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_default.yml:9 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.02s /tmp/tmptdmnrt7v/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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- Setup ------------------------------------------------------------------- 0.02s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:2 ------------------------------------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmptdmnrt7v/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/tmpppg9msr1 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Thursday 21 July 2022 20:37:46 +0000 (0:00:00.019) 0:00:00.019 ********* changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.190083", "end": "2022-07-21 20:37:46.576584", "rc": 0, "start": "2022-07-21 20:37:46.386501" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:37:47 +0000 (0:00:00.766) 0:00:00.785 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 3 plays in /tmp/tmppdxivynv/tests/ssh/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_default.yml:2 Thursday 21 July 2022 20:37:47 +0000 (0:00:00.018) 0:00:00.804 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_default.yml:9 Thursday 21 July 2022 20:37:48 +0000 (0:00:01.017) 0:00:01.821 ********* included: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml for /cache/centos-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:37:48 +0000 (0:00:00.025) 0:00:01.847 ********* included: /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml for /cache/centos-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:37:48 +0000 (0:00:00.023) 0:00:01.871 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:37:48 +0000 (0:00:00.018) 0:00:01.889 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:37:51 +0000 (0:00:02.233) 0:00:04.122 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.qdyleub2", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:37:51 +0000 (0:00:00.478) 0:00:04.601 ********* ok: [/cache/centos-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.qdyleub2/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.qdyleub2/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003852", "end": "2022-07-21 20:37:50.786096", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:37:50.782244" } ok: [/cache/centos-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.qdyleub2/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.qdyleub2/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003217", "end": "2022-07-21 20:37:51.147699", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:37:51.144482" } 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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:37:52 +0000 (0:00:00.773) 0:00:05.375 ********* included: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:37:52 +0000 (0:00:00.026) 0:00:05.402 ********* ok: [/cache/centos-8.qcow2] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:37:52 +0000 (0:00:00.523) 0:00:05.925 ********* skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:37:52 +0000 (0:00:00.079) 0:00:06.005 ********* ok: [/cache/centos-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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:37:54 +0000 (0:00:01.820) 0:00:07.826 ********* skipping: [/cache/centos-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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:37:54 +0000 (0:00:00.022) 0:00:07.848 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:37:54 +0000 (0:00:00.021) 0:00:07.870 ********* ok: [/cache/centos-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/centos-8.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_default.yml:18 Thursday 21 July 2022 20:37:55 +0000 (0:00:01.058) 0:00:08.928 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_default.yml:25 Thursday 21 July 2022 20:37:56 +0000 (0:00:00.787) 0:00:09.716 ********* included: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml for /cache/centos-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:37:56 +0000 (0:00:00.026) 0:00:09.742 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.qdyleub2//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.qdyleub2//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.003533", "end": "2022-07-21 20:37:55.921426", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:37:55.917893" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.qdyleub2//etc/ssh_config; then\n cp /tmp/ansible.qdyleub2//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.003014", "end": "2022-07-21 20:37:56.303654", "item": "/etc/ssh_config", "rc": 0, "start": "2022-07-21 20:37:56.300640" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:37:57 +0000 (0:00:00.766) 0:00:10.509 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.qdyleub2", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:37:57 +0000 (0:00:00.378) 0:00:10.887 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.23s /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.82s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.06s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmppdxivynv/tests/ssh/tests_default.yml:2 -------------------------------- Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmppdxivynv/tests/ssh/tests_default.yml:18 ------------------------------- Backup files ------------------------------------------------------------ 0.77s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 -------------------------------- Restore backed up files and remove what was not present ----------------- 0.77s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 -------------------------------- Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.52s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 --------------------------------- Remove temporary directory for backup files ----------------------------- 0.38s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.08s /tmp/tmpppg9msr1/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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_default.yml:25 ------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_default.yml:9 -------------------------------- Setup ------------------------------------------------------------------- 0.02s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:2 ----------------------------------