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/tmpb2a4zynw 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/tmp507tgphv/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/tmp507tgphv/tests/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:32:12 +0000 (0:00:00.022) 0:00:00.022 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:32:14 +0000 (0:00:01.239) 0:00:01.262 ********* META: end_host conditional evaluated to false, continuing execution for /cache/fedora-35.qcow2.snap skipping: [/cache/fedora-35.qcow2.snap] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/fedora-35.qcow2.snap" } MSG: end_host conditional evaluated to false, continuing execution for /cache/fedora-35.qcow2.snap TASK [Backup configuration files] ********************************************** task path: /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:17 Thursday 21 July 2022 20:32:14 +0000 (0:00:00.055) 0:00:01.318 ********* included: /tmp/tmp507tgphv/tests/tasks/backup.yml for /cache/fedora-35.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp507tgphv/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:32:14 +0000 (0:00:00.026) 0:00:01.344 ********* included: /tmp/tmp507tgphv/tests/tasks/setup.yml for /cache/fedora-35.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp507tgphv/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:32:14 +0000 (0:00:00.026) 0:00:01.371 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp507tgphv/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:32:14 +0000 (0:00:00.019) 0:00:01.390 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp507tgphv/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:32:16 +0000 (0:00:02.318) 0:00:03.708 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.2dm6v_v2", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp507tgphv/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:32:16 +0000 (0:00:00.528) 0:00:04.237 ********* ok: [/cache/fedora-35.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.2dm6v_v2/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.2dm6v_v2/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.004206", "end": "2022-07-21 20:32:16.842112", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:32:16.837906" } TASK [Run role] **************************************************************** task path: /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:20 Thursday 21 July 2022 20:32:17 +0000 (0:00:00.532) 0:00:04.769 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:32:17 +0000 (0:00:00.037) 0:00:04.806 ********* included: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:32:17 +0000 (0:00:00.028) 0:00:04.834 ********* ok: [/cache/fedora-35.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:32:18 +0000 (0:00:00.532) 0:00:05.367 ********* skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-35.qcow2.snap] => (item=Fedora.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/tmp507tgphv/tests/roles/linux-system-roles.ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:32:18 +0000 (0:00:00.050) 0:00:05.417 ********* ok: [/cache/fedora-35.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/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:32:20 +0000 (0:00:01.887) 0:00:07.305 ********* skipping: [/cache/fedora-35.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/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:32:20 +0000 (0:00:00.025) 0:00:07.330 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:32:20 +0000 (0:00:00.026) 0:00:07.356 ********* changed: [/cache/fedora-35.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-1658435540.1718636-52616-193235692614041/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-35.qcow2.snap TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:31 Thursday 21 July 2022 20:32:21 +0000 (0:00:01.255) 0:00:08.612 ********* ok: [/cache/fedora-35.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/tmp507tgphv/tests/tests_custom_drop_in.yml:36 Thursday 21 July 2022 20:32:22 +0000 (0:00:00.671) 0:00:09.284 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:45 Thursday 21 July 2022 20:32:22 +0000 (0:00:00.043) 0:00:09.327 ********* included: /tmp/tmp507tgphv/tests/tasks/restore.yml for /cache/fedora-35.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp507tgphv/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:32:22 +0000 (0:00:00.044) 0:00:09.371 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.2dm6v_v2//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.2dm6v_v2//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.004978", "end": "2022-07-21 20:32:21.883424", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:32:21.878446" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp507tgphv/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:32:22 +0000 (0:00:00.435) 0:00:09.806 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.2dm6v_v2", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:32:23 +0000 (0:00:00.547) 0:00:10.354 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.32s /tmp/tmp507tgphv/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.89s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.26s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.24s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:2 ----------------------------- Download the custom configuration file drop-in -------------------------- 0.67s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:31 ---------------------------- Remove temporary directory for backup files ----------------------------- 0.55s /tmp/tmp507tgphv/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.53s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Backup files ------------------------------------------------------------ 0.53s /tmp/tmp507tgphv/tests/tasks/backup.yml:13 ------------------------------------ Create a temporary directory for backup files --------------------------- 0.53s /tmp/tmp507tgphv/tests/tasks/backup.yml:5 ------------------------------------- Restore backed up files and remove what was not present ----------------- 0.44s /tmp/tmp507tgphv/tests/tasks/restore.yml:2 ------------------------------------ Skip if the system does not support drop in directory ------------------- 0.06s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:10 ---------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Restore configuration files --------------------------------------------- 0.04s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:45 ---------------------------- Verify the options are in the file -------------------------------------- 0.04s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:36 ---------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:20 ---------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_custom_drop_in.yml:17 ---------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp507tgphv/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/tmpb2a4zynw 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/tmpdljjmvxt/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/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:35:03 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:35:05 +0000 (0:00:01.067) 0:00:01.079 ********* META: end_host conditional evaluated to false, continuing execution for /cache/fedora-35.qcow2.snap skipping: [/cache/fedora-35.qcow2.snap] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/fedora-35.qcow2.snap" } MSG: end_host conditional evaluated to false, continuing execution for /cache/fedora-35.qcow2.snap TASK [Backup configuration files] ********************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:15 Thursday 21 July 2022 20:35:05 +0000 (0:00:00.029) 0:00:01.109 ********* included: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml for /cache/fedora-35.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:35:05 +0000 (0:00:00.027) 0:00:01.136 ********* included: /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml for /cache/fedora-35.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:35:05 +0000 (0:00:00.044) 0:00:01.180 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:35:05 +0000 (0:00:00.020) 0:00:01.201 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:35:07 +0000 (0:00:01.987) 0:00:03.188 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.4j87skjt", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:35:07 +0000 (0:00:00.498) 0:00:03.687 ********* ok: [/cache/fedora-35.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.4j87skjt/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.4j87skjt/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.004078", "end": "2022-07-21 20:35:07.602507", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:07.598429" } TASK [Run role] **************************************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:18 Thursday 21 July 2022 20:35:08 +0000 (0:00:00.500) 0:00:04.188 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:35:08 +0000 (0:00:00.038) 0:00:04.226 ********* included: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:35:08 +0000 (0:00:00.029) 0:00:04.255 ********* ok: [/cache/fedora-35.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:35:08 +0000 (0:00:00.508) 0:00:04.764 ********* skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-35.qcow2.snap] => (item=Fedora.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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:35:08 +0000 (0:00:00.050) 0:00:04.815 ********* ok: [/cache/fedora-35.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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:35:10 +0000 (0:00:01.784) 0:00:06.599 ********* skipping: [/cache/fedora-35.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/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:35:10 +0000 (0:00:00.025) 0:00:06.624 ********* skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:35:10 +0000 (0:00:00.024) 0:00:06.648 ********* changed: [/cache/fedora-35.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-1658435710.6507487-56008-155471189595261/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-35.qcow2.snap TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:29 Thursday 21 July 2022 20:35:11 +0000 (0:00:01.116) 0:00:07.765 ********* ok: [/cache/fedora-35.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/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:34 Thursday 21 July 2022 20:35:12 +0000 (0:00:00.488) 0:00:08.254 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:43 Thursday 21 July 2022 20:35:12 +0000 (0:00:00.034) 0:00:08.289 ********* included: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml for /cache/fedora-35.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:35:12 +0000 (0:00:00.024) 0:00:08.314 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.4j87skjt//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.4j87skjt//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.004853", "end": "2022-07-21 20:35:12.108777", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:12.103924" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:35:12 +0000 (0:00:00.381) 0:00:08.696 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.4j87skjt", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:35:13 +0000 (0:00:00.527) 0:00:09.223 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.99s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.78s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.12s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:2 ------------------------- Remove temporary directory for backup files ----------------------------- 0.53s /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.51s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Backup files ------------------------------------------------------------ 0.50s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:13 -------------------------------- Create a temporary directory for backup files --------------------------- 0.50s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:5 --------------------------------- Download the custom configuration file drop-in -------------------------- 0.49s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:29 ------------------------ Restore backed up files and remove what was not present ----------------- 0.38s /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Setup ------------------------------------------------------------------- 0.04s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:2 --------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:18 ------------------------ Verify the options are in the file -------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:34 ------------------------ Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:10 ------------------------ fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:15 ------------------------ fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Restore configuration files --------------------------------------------- 0.02s /tmp/tmpdljjmvxt/tests/ssh/tests_custom_drop_in.yml:43 ------------------------ fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17