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/tmptxteqxd0 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /tmp/tmp46lt5otd/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/tmp46lt5otd/tests/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:19:54 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:19:55 +0000 (0:00:01.118) 0:00:01.132 ********* META: end_host conditional evaluated to false, continuing execution for /cache/rhel-8-y.qcow2.snap skipping: [/cache/rhel-8-y.qcow2.snap] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/rhel-8-y.qcow2.snap" } MSG: end_host conditional evaluated to false, continuing execution for /cache/rhel-8-y.qcow2.snap TASK [Backup configuration files] ********************************************** task path: /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:17 Thursday 21 July 2022 20:19:56 +0000 (0:00:00.029) 0:00:01.161 ********* included: /tmp/tmp46lt5otd/tests/tasks/backup.yml for /cache/rhel-8-y.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp46lt5otd/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:19:56 +0000 (0:00:00.025) 0:00:01.187 ********* included: /tmp/tmp46lt5otd/tests/tasks/setup.yml for /cache/rhel-8-y.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp46lt5otd/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:19:56 +0000 (0:00:00.045) 0:00:01.233 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp46lt5otd/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:19:56 +0000 (0:00:00.019) 0:00:01.252 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp46lt5otd/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:19:57 +0000 (0:00:01.352) 0:00:02.604 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._091j1b6", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp46lt5otd/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:19:57 +0000 (0:00:00.489) 0:00:03.093 ********* ok: [/cache/rhel-8-y.qcow2.snap] => (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._091j1b6/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible._091j1b6/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.003131", "end": "2022-07-21 16:19:58.760683", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:19:58.757552" } TASK [Run role] **************************************************************** task path: /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:20 Thursday 21 July 2022 20:19:58 +0000 (0:00:00.501) 0:00:03.595 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:19:58 +0000 (0:00:00.033) 0:00:03.628 ********* included: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:19:58 +0000 (0:00:00.027) 0:00:03.655 ********* ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:19:59 +0000 (0:00:00.509) 0:00:04.165 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8-y.qcow2.snap] => (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/tmp46lt5otd/tests/roles/linux-system-roles.ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:19:59 +0000 (0:00:00.049) 0:00:04.215 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:20:00 +0000 (0:00:01.390) 0:00:05.605 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:20:00 +0000 (0:00:00.023) 0:00:05.629 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:20:00 +0000 (0:00:00.021) 0:00:05.651 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "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-1658434800.5539374-40091-135319671581129/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:31 Thursday 21 July 2022 20:20:01 +0000 (0:00:01.096) 0:00:06.748 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "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/tmp46lt5otd/tests/tests_custom_drop_in.yml:36 Thursday 21 July 2022 20:20:02 +0000 (0:00:00.493) 0:00:07.241 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:45 Thursday 21 July 2022 20:20:02 +0000 (0:00:00.038) 0:00:07.280 ********* included: /tmp/tmp46lt5otd/tests/tasks/restore.yml for /cache/rhel-8-y.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp46lt5otd/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:20:02 +0000 (0:00:00.025) 0:00:07.305 ********* ok: [/cache/rhel-8-y.qcow2.snap] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._091j1b6//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible._091j1b6//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.004536", "end": "2022-07-21 16:20:02.856174", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:20:02.851638" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp46lt5otd/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:20:02 +0000 (0:00:00.388) 0:00:07.694 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/tmp/ansible._091j1b6", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:20:03 +0000 (0:00:00.523) 0:00:08.217 ********* =============================================================================== linux-system-roles.ssh : Ensure required packages are installed --------- 1.39s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Make sure openssh is installed before creating backup ------------------- 1.35s /tmp/tmp46lt5otd/tests/tasks/setup.yml:7 -------------------------------------- Gathering Facts --------------------------------------------------------- 1.12s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:2 ----------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.10s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmp46lt5otd/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.51s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Backup files ------------------------------------------------------------ 0.50s /tmp/tmp46lt5otd/tests/tasks/backup.yml:13 ------------------------------------ Download the custom configuration file drop-in -------------------------- 0.49s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:31 ---------------------------- Create a temporary directory for backup files --------------------------- 0.49s /tmp/tmp46lt5otd/tests/tasks/backup.yml:5 ------------------------------------- Restore backed up files and remove what was not present ----------------- 0.39s /tmp/tmp46lt5otd/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Setup ------------------------------------------------------------------- 0.05s /tmp/tmp46lt5otd/tests/tasks/backup.yml:2 ------------------------------------- Verify the options are in the file -------------------------------------- 0.04s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:36 ---------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:20 ---------------------------- Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:10 ---------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:17 ---------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_custom_drop_in.yml:45 ---------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- 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/tmptxteqxd0 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /tmp/tmpni6azq3t/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/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:22:31 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:22:32 +0000 (0:00:01.079) 0:00:01.093 ********* META: end_host conditional evaluated to false, continuing execution for /cache/rhel-8-y.qcow2.snap skipping: [/cache/rhel-8-y.qcow2.snap] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/rhel-8-y.qcow2.snap" } MSG: end_host conditional evaluated to false, continuing execution for /cache/rhel-8-y.qcow2.snap TASK [Backup configuration files] ********************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:15 Thursday 21 July 2022 20:22:33 +0000 (0:00:00.029) 0:00:01.123 ********* included: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml for /cache/rhel-8-y.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:22:33 +0000 (0:00:00.026) 0:00:01.150 ********* included: /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml for /cache/rhel-8-y.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:22:33 +0000 (0:00:00.026) 0:00:01.176 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:22:33 +0000 (0:00:00.043) 0:00:01.219 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:22:34 +0000 (0:00:01.368) 0:00:02.588 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.ipgbw2v9", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:22:34 +0000 (0:00:00.471) 0:00:03.059 ********* ok: [/cache/rhel-8-y.qcow2.snap] => (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.ipgbw2v9/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.ipgbw2v9/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.003081", "end": "2022-07-21 16:22:34.859875", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:22:34.856794" } TASK [Run role] **************************************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:18 Thursday 21 July 2022 20:22:35 +0000 (0:00:00.491) 0:00:03.551 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:22:35 +0000 (0:00:00.037) 0:00:03.589 ********* included: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:22:35 +0000 (0:00:00.028) 0:00:03.617 ********* ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:22:36 +0000 (0:00:00.497) 0:00:04.115 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8-y.qcow2.snap] => (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/tmptxteqxd0/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-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:22:36 +0000 (0:00:00.051) 0:00:04.166 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:22:37 +0000 (0:00:01.283) 0:00:05.449 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:22:37 +0000 (0:00:00.024) 0:00:05.474 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:22:37 +0000 (0:00:00.022) 0:00:05.497 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "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-1658434957.467027-43474-180963092933128/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:29 Thursday 21 July 2022 20:22:38 +0000 (0:00:01.098) 0:00:06.595 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "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/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:34 Thursday 21 July 2022 20:22:38 +0000 (0:00:00.488) 0:00:07.084 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:43 Thursday 21 July 2022 20:22:39 +0000 (0:00:00.034) 0:00:07.119 ********* included: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml for /cache/rhel-8-y.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:22:39 +0000 (0:00:00.024) 0:00:07.144 ********* ok: [/cache/rhel-8-y.qcow2.snap] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.ipgbw2v9//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.ipgbw2v9//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.003902", "end": "2022-07-21 16:22:38.812741", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:22:38.808839" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:22:39 +0000 (0:00:00.356) 0:00:07.501 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.ipgbw2v9", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:22:39 +0000 (0:00:00.506) 0:00:08.007 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.37s /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.28s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.10s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.08s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:2 ------------------------- Remove temporary directory for backup files ----------------------------- 0.51s /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.50s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Backup files ------------------------------------------------------------ 0.49s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:13 -------------------------------- Download the custom configuration file drop-in -------------------------- 0.49s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:29 ------------------------ Create a temporary directory for backup files --------------------------- 0.47s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:5 --------------------------------- Restore backed up files and remove what was not present ----------------- 0.36s /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Ensure facts used by test ----------------------------------------------- 0.04s /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:2 ---------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:18 ------------------------ Verify the options are in the file -------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:34 ------------------------ Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:10 ------------------------ fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:15 ------------------------ Setup ------------------------------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:2 --------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_custom_drop_in.yml:43 ------------------------ fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10