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_precedence.yml ************************************************* 1 plays in /tmp/tmp507tgphv/tests/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp507tgphv/tests/tests_precedence.yml:2 Thursday 21 July 2022 20:33:51 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp507tgphv/tests/tests_precedence.yml:11 Thursday 21 July 2022 20:33:52 +0000 (0:00:01.093) 0:00:01.106 ********* 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:33:52 +0000 (0:00:00.027) 0:00:01.133 ********* 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:33:52 +0000 (0:00:00.026) 0:00:01.160 ********* 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:33:52 +0000 (0:00:00.024) 0:00:01.185 ********* 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:33:54 +0000 (0:00:02.008) 0:00:03.193 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.hl8xij0x", "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:33:54 +0000 (0:00:00.497) 0:00:03.691 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.hl8xij0x/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.hl8xij0x/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.008316", "end": "2022-07-21 20:33:54.708269", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:33:54.699953" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config; then\n mkdir -p /tmp/ansible.hl8xij0x/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.hl8xij0x/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008144", "end": "2022-07-21 20:33:55.067839", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:33:55.059695" } TASK [Run role] **************************************************************** task path: /tmp/tmp507tgphv/tests/tests_precedence.yml:14 Thursday 21 July 2022 20:33:55 +0000 (0:00:00.876) 0:00:04.568 ********* 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:33:55 +0000 (0:00:00.034) 0:00:04.602 ********* 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:33:55 +0000 (0:00:00.026) 0:00:04.628 ********* 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:33:56 +0000 (0:00:00.530) 0:00:05.158 ********* 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:33:56 +0000 (0:00:00.066) 0:00:05.225 ********* 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:33:58 +0000 (0:00:01.823) 0:00:07.048 ********* 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:33:58 +0000 (0:00:00.027) 0:00:07.076 ********* 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:33:58 +0000 (0:00:00.024) 0:00:07.101 ********* changed: [/cache/fedora-35.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.15305.2022-07-21@20:33:58~", "changed": true, "checksum": "2771a93b02b62ba49a971a92a8f08cd527a3ef0a", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "d3ac25fe0e97e20c58467fe15bdd8cca", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 57, "src": "/root/.ansible/tmp/ansible-tmp-1658435638.3505785-54745-224905300993305/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-35.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmp507tgphv/tests/tests_precedence.yml:36 Thursday 21 July 2022 20:33:59 +0000 (0:00:01.137) 0:00:08.238 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMK", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmp507tgphv/tests/tests_precedence.yml:41 Thursday 21 July 2022 20:33:59 +0000 (0:00:00.546) 0:00:08.784 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp507tgphv/tests/tests_precedence.yml:49 Thursday 21 July 2022 20:34:00 +0000 (0:00:00.048) 0:00:08.833 ********* 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:34:00 +0000 (0:00:00.032) 0:00:08.866 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.hl8xij0x//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.hl8xij0x//etc/ssh/ssh_config.d/00-ansible.conf $(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.007160", "end": "2022-07-21 20:33:59.776610", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:33:59.769450" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.hl8xij0x//etc/ssh/ssh_config; then\n cp /tmp/ansible.hl8xij0x//etc/ssh/ssh_config $(dirname /etc/ssh/ssh_config)\nelif test -f /etc/ssh/ssh_config; then\n rm /etc/ssh/ssh_config\nfi\n", "delta": "0:00:00.006187", "end": "2022-07-21 20:34:00.142340", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:34:00.136153" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp507tgphv/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:34:00 +0000 (0:00:00.776) 0:00:09.642 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.hl8xij0x", "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:34:01 +0000 (0:00:00.516) 0:00:10.159 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.01s /tmp/tmp507tgphv/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.82s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.14s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.09s /tmp/tmp507tgphv/tests/tests_precedence.yml:2 --------------------------------- Backup files ------------------------------------------------------------ 0.88s /tmp/tmp507tgphv/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.78s /tmp/tmp507tgphv/tests/tasks/restore.yml:2 ------------------------------------ Download the global configuration file ---------------------------------- 0.55s /tmp/tmp507tgphv/tests/tests_precedence.yml:36 -------------------------------- 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 ------ Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmp507tgphv/tests/tasks/restore.yml:15 ----------------------------------- Create a temporary directory for backup files --------------------------- 0.50s /tmp/tmp507tgphv/tests/tasks/backup.yml:5 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.07s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the options are in the file -------------------------------------- 0.05s /tmp/tmp507tgphv/tests/tests_precedence.yml:41 -------------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_precedence.yml:14 -------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_precedence.yml:49 -------------------------------- 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 --------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_precedence.yml:11 -------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmp507tgphv/tests/tasks/setup.yml:2 -------------------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmp507tgphv/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/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_precedence.yml ************************************************* 1 plays in /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:2 Thursday 21 July 2022 20:36:39 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:11 Thursday 21 July 2022 20:36:40 +0000 (0:00:01.095) 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:36:40 +0000 (0:00:00.028) 0:00:01.137 ********* 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:36:40 +0000 (0:00:00.026) 0:00:01.164 ********* 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:36:40 +0000 (0:00:00.022) 0:00:01.187 ********* 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:36:42 +0000 (0:00:02.003) 0:00:03.191 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.s2oq4xh4", "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:36:42 +0000 (0:00:00.487) 0:00:03.678 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.s2oq4xh4/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.s2oq4xh4/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.009079", "end": "2022-07-21 20:36:42.889426", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:36:42.880347" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config; then\n mkdir -p /tmp/ansible.s2oq4xh4/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.s2oq4xh4/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007591", "end": "2022-07-21 20:36:43.549295", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:36:43.541704" } TASK [Run role] **************************************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:14 Thursday 21 July 2022 20:36:44 +0000 (0:00:01.181) 0:00:04.859 ********* 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:36:44 +0000 (0:00:00.038) 0:00:04.897 ********* 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:36:44 +0000 (0:00:00.027) 0:00:04.925 ********* 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:36:44 +0000 (0:00:00.539) 0:00:05.464 ********* 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:36:44 +0000 (0:00:00.052) 0:00:05.516 ********* 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:36:46 +0000 (0:00:01.791) 0:00:07.308 ********* 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:36:46 +0000 (0:00:00.033) 0:00:07.341 ********* 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:36:46 +0000 (0:00:00.037) 0:00:07.379 ********* changed: [/cache/fedora-35.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.15304.2022-07-21@20:36:47~", "changed": true, "checksum": "2771a93b02b62ba49a971a92a8f08cd527a3ef0a", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "d3ac25fe0e97e20c58467fe15bdd8cca", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 57, "src": "/root/.ansible/tmp/ansible-tmp-1658435806.673308-58122-59454510155922/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-35.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:36 Thursday 21 July 2022 20:36:47 +0000 (0:00:01.153) 0:00:08.532 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMK", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:41 Thursday 21 July 2022 20:36:48 +0000 (0:00:00.502) 0:00:09.035 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:49 Thursday 21 July 2022 20:36:48 +0000 (0:00:00.048) 0:00:09.084 ********* 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:36:48 +0000 (0:00:00.027) 0:00:09.111 ********* ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.s2oq4xh4//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.s2oq4xh4//etc/ssh/ssh_config.d/00-ansible.conf $(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.006935", "end": "2022-07-21 20:36:48.212361", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:36:48.205426" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.s2oq4xh4//etc/ssh/ssh_config; then\n cp /tmp/ansible.s2oq4xh4//etc/ssh/ssh_config $(dirname /etc/ssh/ssh_config)\nelif test -f /etc/ssh/ssh_config; then\n rm /etc/ssh/ssh_config\nfi\n", "delta": "0:00:00.005925", "end": "2022-07-21 20:36:48.576471", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:36:48.570546" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:36:49 +0000 (0:00:00.777) 0:00:09.889 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.s2oq4xh4", "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:36:49 +0000 (0:00:00.530) 0:00:10.419 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.00s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.79s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Backup files ------------------------------------------------------------ 1.18s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:13 -------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.15s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.10s /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:2 ----------------------------- Restore backed up files and remove what was not present ----------------- 0.78s /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.54s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.53s /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.50s /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:36 ---------------------------- Create a temporary directory for backup files --------------------------- 0.49s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:5 --------------------------------- 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 Verify the options are in the file -------------------------------------- 0.05s /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:41 ---------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:14 ---------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.04s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 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 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:11 ---------------------------- 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 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tests_precedence.yml:49 ---------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:2 --------------------------------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:2 ----------------------------------