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:35 +0000 (0:00:00.017) 0:00:00.017 ********* 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.198269", "end": "2022-07-21 20:33:35.532329", "rc": 0, "start": "2022-07-21 20:33:35.334060" } 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:36 +0000 (0:00:00.791) 0:00:00.809 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml PLAY [Test we can write any other configuration file as a drop-in] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:33:36 +0000 (0:00:00.012) 0:00:00.822 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:33:37 +0000 (0:00:01.036) 0:00:01.859 ********* META: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 skipping: [/cache/centos-8.qcow2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/centos-8.qcow2" } MSG: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 TASK [Backup configuration files] ********************************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:17 Thursday 21 July 2022 20:33:37 +0000 (0:00:00.028) 0:00:01.888 ********* 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:37 +0000 (0:00:00.026) 0:00:01.914 ********* 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:37 +0000 (0:00:00.025) 0:00:01.939 ********* 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:37 +0000 (0:00:00.020) 0:00:01.960 ********* 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:39 +0000 (0:00:02.123) 0:00:04.084 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.cx0pvyzl", "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:39 +0000 (0:00:00.482) 0:00:04.567 ********* ok: [/cache/centos-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ssh_config.d_00-ansible.conf; then\n mkdir -p /tmp/ansible.cx0pvyzl/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.cx0pvyzl/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.002963", "end": "2022-07-21 20:33:39.677264", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:33:39.674301" } TASK [Run role] **************************************************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:20 Thursday 21 July 2022 20:33:40 +0000 (0:00:00.378) 0:00:04.945 ********* 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:40 +0000 (0:00:00.031) 0:00:04.977 ********* 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:40 +0000 (0:00:00.024) 0:00:05.002 ********* 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:40 +0000 (0:00:00.508) 0:00:05.511 ********* 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:40 +0000 (0:00:00.056) 0:00:05.567 ********* 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:42 +0000 (0:00:01.790) 0:00:07.358 ********* 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:42 +0000 (0:00:00.024) 0:00:07.382 ********* 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:42 +0000 (0:00:00.031) 0:00:07.413 ********* changed: [/cache/centos-8.qcow2] => { "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config.d_00-ansible.conf", "gid": 0, "group": "root", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1658435622.8393698-56683-67719638439484/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:31 Thursday 21 July 2022 20:33:43 +0000 (0:00:01.100) 0:00:08.513 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config.d_00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:36 Thursday 21 July 2022 20:33:44 +0000 (0:00:00.481) 0:00:08.994 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:45 Thursday 21 July 2022 20:33:44 +0000 (0:00:00.034) 0:00:09.029 ********* 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:44 +0000 (0:00:00.024) 0:00:09.053 ********* ok: [/cache/centos-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.cx0pvyzl//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.cx0pvyzl//tmp/ssh_config.d_00-ansible.conf $(dirname /tmp/ssh_config.d_00-ansible.conf)\nelif test -f /tmp/ssh_config.d_00-ansible.conf; then\n rm /tmp/ssh_config.d_00-ansible.conf\nfi\n", "delta": "0:00:00.004559", "end": "2022-07-21 20:33:44.177367", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:33:44.172808" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:33:44 +0000 (0:00:00.398) 0:00:09.452 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.cx0pvyzl", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=17 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:33:45 +0000 (0:00:00.538) 0:00:09.990 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.12s /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.79s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.10s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:2 ----------------------------- Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- Remove temporary directory for backup files ----------------------------- 0.54s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 ----------------------------------- 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 ------------------------------------- Download the custom configuration file drop-in -------------------------- 0.48s /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:31 ---------------------------- Restore backed up files and remove what was not present ----------------- 0.40s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 ------------------------------------ Backup files ------------------------------------------------------------ 0.38s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the options are in the file -------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:36 ---------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:20 ---------------------------- 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 --------- Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:10 ---------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_custom_drop_in.yml:17 ---------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:2 ------------------------------------- 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 --------- 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:36 +0000 (0:00:00.018) 0:00:00.018 ********* 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.209316", "end": "2022-07-21 20:37:35.881579", "rc": 0, "start": "2022-07-21 20:37:35.672263" } 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:37 +0000 (0:00:00.768) 0:00:00.787 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml PLAY [Test we can write any other configuration file as a drop-in] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:37:37 +0000 (0:00:00.012) 0:00:00.800 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:37:38 +0000 (0:00:01.040) 0:00:01.840 ********* META: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 skipping: [/cache/centos-8.qcow2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/centos-8.qcow2" } MSG: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 TASK [Backup configuration files] ********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:15 Thursday 21 July 2022 20:37:38 +0000 (0:00:00.027) 0:00:01.868 ********* 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:38 +0000 (0:00:00.025) 0:00:01.893 ********* 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:38 +0000 (0:00:00.023) 0:00:01.916 ********* 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:38 +0000 (0:00:00.017) 0:00:01.934 ********* 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:40 +0000 (0:00:02.346) 0:00:04.281 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.vwt7xkul", "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:40 +0000 (0:00:00.468) 0:00:04.749 ********* ok: [/cache/centos-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ssh_config.d_00-ansible.conf; then\n mkdir -p /tmp/ansible.vwt7xkul/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.vwt7xkul/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.003029", "end": "2022-07-21 20:37:40.223326", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:37:40.220297" } TASK [Run role] **************************************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:18 Thursday 21 July 2022 20:37:41 +0000 (0:00:00.375) 0:00:05.125 ********* 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:41 +0000 (0:00:00.036) 0:00:05.162 ********* 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:41 +0000 (0:00:00.027) 0:00:05.189 ********* 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:41 +0000 (0:00:00.481) 0:00:05.670 ********* 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:41 +0000 (0:00:00.059) 0:00:05.729 ********* 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:43 +0000 (0:00:01.817) 0:00:07.546 ********* 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:43 +0000 (0:00:00.023) 0:00:07.570 ********* 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:43 +0000 (0:00:00.022) 0:00:07.592 ********* changed: [/cache/centos-8.qcow2] => { "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config.d_00-ansible.conf", "gid": 0, "group": "root", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1658435863.8945878-60400-134460505850814/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:29 Thursday 21 July 2022 20:37:44 +0000 (0:00:01.081) 0:00:08.674 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config.d_00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:34 Thursday 21 July 2022 20:37:45 +0000 (0:00:00.471) 0:00:09.146 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:43 Thursday 21 July 2022 20:37:45 +0000 (0:00:00.036) 0:00:09.182 ********* 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:45 +0000 (0:00:00.026) 0:00:09.209 ********* ok: [/cache/centos-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.vwt7xkul//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.vwt7xkul//tmp/ssh_config.d_00-ansible.conf $(dirname /tmp/ssh_config.d_00-ansible.conf)\nelif test -f /tmp/ssh_config.d_00-ansible.conf; then\n rm /tmp/ssh_config.d_00-ansible.conf\nfi\n", "delta": "0:00:00.004612", "end": "2022-07-21 20:37:44.692953", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:37:44.688341" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:37:45 +0000 (0:00:00.386) 0:00:09.595 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.vwt7xkul", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=17 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:37:46 +0000 (0:00:00.518) 0:00:10.113 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.35s /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.08s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:2 ------------------------- Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.48s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Download the custom configuration file drop-in -------------------------- 0.47s /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:29 ------------------------ Create a temporary directory for backup files --------------------------- 0.47s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 --------------------------------- Restore backed up files and remove what was not present ----------------- 0.39s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 -------------------------------- Backup files ------------------------------------------------------------ 0.38s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 -------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Run role ---------------------------------------------------------------- 0.04s /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:18 ------------------------ Verify the options are in the file -------------------------------------- 0.04s /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:34 ------------------------ Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:10 ------------------------ 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_custom_drop_in.yml:43 ------------------------ Backup configuration files ---------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_custom_drop_in.yml:15 ------------------------ 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 Setup ------------------------------------------------------------------- 0.02s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:2 ---------------------------------