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_global_config.yml ********************************************** 1 plays in /tmp/tmp507tgphv/tests/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp507tgphv/tests/tests_global_config.yml:2 Thursday 21 July 2022 20:32:34 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp507tgphv/tests/tests_global_config.yml:11 Thursday 21 July 2022 20:32:35 +0000 (0:00:01.130) 0:00:01.144 ********* 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:35 +0000 (0:00:00.036) 0:00:01.181 ********* 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:35 +0000 (0:00:00.029) 0:00:01.211 ********* 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:36 +0000 (0:00:00.046) 0:00:01.257 ********* 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:37 +0000 (0:00:01.950) 0:00:03.208 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.rfhkecnm", "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:38 +0000 (0:00:00.514) 0:00:03.722 ********* 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.rfhkecnm/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.rfhkecnm/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.011503", "end": "2022-07-21 20:32:38.345977", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:32:38.334474" } 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.rfhkecnm/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.rfhkecnm/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008395", "end": "2022-07-21 20:32:38.719417", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:32:38.711022" } TASK [Run role] **************************************************************** task path: /tmp/tmp507tgphv/tests/tests_global_config.yml:14 Thursday 21 July 2022 20:32:39 +0000 (0:00:00.914) 0:00:04.636 ********* 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:39 +0000 (0:00:00.035) 0:00:04.671 ********* 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:39 +0000 (0:00:00.028) 0:00:04.700 ********* 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:39 +0000 (0:00:00.551) 0:00:05.251 ********* 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:40 +0000 (0:00:00.056) 0:00:05.308 ********* 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:42 +0000 (0:00:02.061) 0:00:07.370 ********* 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:42 +0000 (0:00:00.028) 0:00:07.398 ********* 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:42 +0000 (0:00:00.026) 0:00:07.425 ********* changed: [/cache/fedora-35.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.6191.2022-07-21@20:32:42~", "changed": true, "checksum": "f38a8a96250e45899f48c98e601512d496860083", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "db0ebde88fc58af96a9426da8aab8059", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 279, "src": "/root/.ansible/tmp/ansible-tmp-1658435562.2660425-53065-279754197844406/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_global_config.yml:50 Thursday 21 July 2022 20:32:43 +0000 (0:00:01.368) 0:00:08.794 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "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_global_config.yml:55 Thursday 21 July 2022 20:32:44 +0000 (0:00:00.539) 0:00:09.334 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmp507tgphv/tests/tests_global_config.yml:73 Thursday 21 July 2022 20:32:44 +0000 (0:00:00.066) 0:00:09.400 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp507tgphv/tests/tests_global_config.yml:81 Thursday 21 July 2022 20:32:44 +0000 (0:00:00.053) 0:00:09.454 ********* 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:44 +0000 (0:00:00.030) 0:00:09.484 ********* 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.rfhkecnm//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.rfhkecnm//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.006962", "end": "2022-07-21 20:32:43.964592", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:32:43.957630" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.rfhkecnm//etc/ssh/ssh_config; then\n cp /tmp/ansible.rfhkecnm//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.007451", "end": "2022-07-21 20:32:44.406849", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:32:44.399398" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp507tgphv/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:32:45 +0000 (0:00:00.844) 0:00:10.329 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.rfhkecnm", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:32:45 +0000 (0:00:00.541) 0:00:10.870 ********* =============================================================================== linux-system-roles.ssh : Ensure required packages are installed --------- 2.06s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Make sure openssh is installed before creating backup ------------------- 1.95s /tmp/tmp507tgphv/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.37s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp507tgphv/tests/tests_global_config.yml:2 ------------------------------ Backup files ------------------------------------------------------------ 0.91s /tmp/tmp507tgphv/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.84s /tmp/tmp507tgphv/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.55s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Remove temporary directory for backup files ----------------------------- 0.54s /tmp/tmp507tgphv/tests/tasks/restore.yml:15 ----------------------------------- Download the global configuration file ---------------------------------- 0.54s /tmp/tmp507tgphv/tests/tests_global_config.yml:50 ----------------------------- Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmp507tgphv/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.07s /tmp/tmp507tgphv/tests/tests_global_config.yml:55 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmp507tgphv/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmp507tgphv/tests/tests_global_config.yml:73 ----------------------------- Ensure facts used by test ----------------------------------------------- 0.05s /tmp/tmp507tgphv/tests/tasks/setup.yml:2 -------------------------------------- Backup configuration files ---------------------------------------------- 0.04s /tmp/tmp507tgphv/tests/tests_global_config.yml:11 ----------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmp507tgphv/tests/tests_global_config.yml:14 ----------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp507tgphv/tests/tests_global_config.yml:81 ----------------------------- 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 ---------- 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_global_config.yml ********************************************** 1 plays in /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:2 Thursday 21 July 2022 20:35:24 +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_global_config.yml:11 Thursday 21 July 2022 20:35:25 +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:35:25 +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:25 +0000 (0:00:00.025) 0:00:01.162 ********* 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:25 +0000 (0:00:00.043) 0:00:01.206 ********* 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:27 +0000 (0:00:01.898) 0:00:03.104 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.navw05qz", "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:27 +0000 (0:00:00.488) 0:00:03.592 ********* 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.navw05qz/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.navw05qz/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.015174", "end": "2022-07-21 20:35:28.000748", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:27.985574" } 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.navw05qz/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.navw05qz/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008205", "end": "2022-07-21 20:35:28.368839", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:35:28.360634" } TASK [Run role] **************************************************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:14 Thursday 21 July 2022 20:35:28 +0000 (0:00:00.890) 0:00:04.483 ********* 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:28 +0000 (0:00:00.038) 0:00:04.522 ********* 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:28 +0000 (0:00:00.029) 0:00:04.551 ********* 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:29 +0000 (0:00:00.538) 0:00:05.089 ********* 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:29 +0000 (0:00:00.056) 0:00:05.146 ********* 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:31 +0000 (0:00:01.764) 0:00:06.910 ********* 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:31 +0000 (0:00:00.023) 0:00:06.934 ********* 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:31 +0000 (0:00:00.022) 0:00:06.957 ********* changed: [/cache/fedora-35.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.6190.2022-07-21@20:35:31~", "changed": true, "checksum": "f38a8a96250e45899f48c98e601512d496860083", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "db0ebde88fc58af96a9426da8aab8059", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 279, "src": "/root/.ansible/tmp/ansible-tmp-1658435731.4416628-56442-9281953856666/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_global_config.yml:50 Thursday 21 July 2022 20:35:32 +0000 (0:00:01.129) 0:00:08.086 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "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_global_config.yml:55 Thursday 21 July 2022 20:35:33 +0000 (0:00:00.524) 0:00:08.610 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:73 Thursday 21 July 2022 20:35:33 +0000 (0:00:00.060) 0:00:08.671 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:81 Thursday 21 July 2022 20:35:33 +0000 (0:00:00.047) 0:00:08.719 ********* 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:33 +0000 (0:00:00.024) 0:00:08.743 ********* 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.navw05qz//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.navw05qz//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.005808", "end": "2022-07-21 20:35:33.022495", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:33.016687" } ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.navw05qz//etc/ssh/ssh_config; then\n cp /tmp/ansible.navw05qz//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.006015", "end": "2022-07-21 20:35:33.412810", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:35:33.406795" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpdljjmvxt/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:35:33 +0000 (0:00:00.781) 0:00:09.525 ********* ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.navw05qz", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:35:34 +0000 (0:00:00.533) 0:00:10.058 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.90s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.76s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.13s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.10s /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:2 -------------------------- Backup files ------------------------------------------------------------ 0.89s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:13 -------------------------------- 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.52s /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:50 ------------------------- Create a temporary directory for backup files --------------------------- 0.49s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:5 --------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:55 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:73 ------------------------- Ensure facts used by test ----------------------------------------------- 0.04s /tmp/tmpdljjmvxt/tests/ssh/tasks/setup.yml:2 ---------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:14 ------------------------- 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_global_config.yml:11 ------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpdljjmvxt/tests/ssh/tasks/backup.yml:2 --------------------------------- Restore configuration files --------------------------------------------- 0.02s /tmp/tmpdljjmvxt/tests/ssh/tests_global_config.yml:81 ------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpb2a4zynw/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10