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/tmpkn11ymek 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/tmp_b_5f9t_/tests/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:2 Thursday 21 July 2022 20:43:19 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:11 Thursday 21 July 2022 20:43:20 +0000 (0:00:01.146) 0:00:01.159 ********* included: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml for /cache/fedora-36.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:43:20 +0000 (0:00:00.025) 0:00:01.185 ********* included: /tmp/tmp_b_5f9t_/tests/tasks/setup.yml for /cache/fedora-36.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp_b_5f9t_/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:43:20 +0000 (0:00:00.044) 0:00:01.229 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp_b_5f9t_/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:43:20 +0000 (0:00:00.019) 0:00:01.249 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:43:22 +0000 (0:00:02.102) 0:00:03.352 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._d2apa3d", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:43:23 +0000 (0:00:00.519) 0:00:03.872 ********* ok: [/cache/fedora-36.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._d2apa3d/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible._d2apa3d/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.013109", "end": "2022-07-21 20:43:23.233673", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:43:23.220564" } ok: [/cache/fedora-36.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._d2apa3d/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible._d2apa3d/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.009528", "end": "2022-07-21 20:43:23.631546", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:43:23.622018" } TASK [Run role] **************************************************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:14 Thursday 21 July 2022 20:43:24 +0000 (0:00:00.961) 0:00:04.833 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:43:24 +0000 (0:00:00.033) 0:00:04.866 ********* included: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:43:24 +0000 (0:00:00.026) 0:00:04.892 ********* ok: [/cache/fedora-36.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:43:24 +0000 (0:00:00.564) 0:00:05.457 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-36.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/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:43:24 +0000 (0:00:00.054) 0:00:05.511 ********* ok: [/cache/fedora-36.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/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:43:26 +0000 (0:00:01.801) 0:00:07.313 ********* skipping: [/cache/fedora-36.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/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:43:26 +0000 (0:00:00.025) 0:00:07.339 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:43:26 +0000 (0:00:00.025) 0:00:07.364 ********* changed: [/cache/fedora-36.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.6508.2022-07-21@20:43:27~", "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-1658436206.669909-64657-16416221363342/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-36.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:50 Thursday 21 July 2022 20:43:27 +0000 (0:00:01.209) 0:00:08.574 ********* ok: [/cache/fedora-36.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/tmp_b_5f9t_/tests/tests_global_config.yml:55 Thursday 21 July 2022 20:43:28 +0000 (0:00:00.548) 0:00:09.122 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:73 Thursday 21 July 2022 20:43:28 +0000 (0:00:00.065) 0:00:09.188 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:81 Thursday 21 July 2022 20:43:28 +0000 (0:00:00.050) 0:00:09.238 ********* included: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml for /cache/fedora-36.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:43:28 +0000 (0:00:00.026) 0:00:09.264 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._d2apa3d//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible._d2apa3d//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.007413", "end": "2022-07-21 20:43:28.491664", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:43:28.484251" } ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._d2apa3d//etc/ssh/ssh_config; then\n cp /tmp/ansible._d2apa3d//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.007123", "end": "2022-07-21 20:43:28.908244", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:43:28.901121" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:43:29 +0000 (0:00:00.844) 0:00:10.109 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "path": "/tmp/ansible._d2apa3d", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:43:29 +0000 (0:00:00.538) 0:00:10.647 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.10s /tmp/tmp_b_5f9t_/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.80s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.21s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.15s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:2 ------------------------------ Backup files ------------------------------------------------------------ 0.96s /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.84s /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.56s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Download the global configuration file ---------------------------------- 0.55s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:50 ----------------------------- Remove temporary directory for backup files ----------------------------- 0.54s /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:15 ----------------------------------- Create a temporary directory for backup files --------------------------- 0.52s /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.07s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:55 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:73 ----------------------------- Setup ------------------------------------------------------------------- 0.04s /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:2 ------------------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:14 ----------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:81 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp_b_5f9t_/tests/tests_global_config.yml:11 ----------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp_b_5f9t_/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.03s /tmp/tmp_b_5f9t_/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/tmpkn11ymek 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/tmp7s9fngkn/tests/ssh/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:2 Thursday 21 July 2022 20:46:14 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:11 Thursday 21 July 2022 20:46:15 +0000 (0:00:01.149) 0:00:01.162 ********* included: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml for /cache/fedora-36.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:46:15 +0000 (0:00:00.027) 0:00:01.190 ********* included: /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml for /cache/fedora-36.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:46:15 +0000 (0:00:00.050) 0:00:01.240 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:46:15 +0000 (0:00:00.021) 0:00:01.262 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:46:17 +0000 (0:00:01.844) 0:00:03.107 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.mzurqa28", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:46:17 +0000 (0:00:00.511) 0:00:03.618 ********* ok: [/cache/fedora-36.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.mzurqa28/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.mzurqa28/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.011583", "end": "2022-07-21 20:46:17.498653", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:46:17.487070" } ok: [/cache/fedora-36.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.mzurqa28/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.mzurqa28/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008495", "end": "2022-07-21 20:46:17.867133", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:46:17.858638" } TASK [Run role] **************************************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:14 Thursday 21 July 2022 20:46:18 +0000 (0:00:00.911) 0:00:04.530 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:46:18 +0000 (0:00:00.036) 0:00:04.567 ********* included: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:46:18 +0000 (0:00:00.028) 0:00:04.595 ********* ok: [/cache/fedora-36.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:46:19 +0000 (0:00:00.535) 0:00:05.131 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-36.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/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:46:19 +0000 (0:00:00.051) 0:00:05.182 ********* ok: [/cache/fedora-36.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/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:46:21 +0000 (0:00:01.751) 0:00:06.933 ********* skipping: [/cache/fedora-36.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/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:46:21 +0000 (0:00:00.023) 0:00:06.956 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:46:21 +0000 (0:00:00.021) 0:00:06.978 ********* changed: [/cache/fedora-36.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.6503.2022-07-21@20:46:21~", "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-1658436381.34148-68043-101751621841950/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-36.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:50 Thursday 21 July 2022 20:46:22 +0000 (0:00:01.192) 0:00:08.171 ********* ok: [/cache/fedora-36.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/tmp7s9fngkn/tests/ssh/tests_global_config.yml:55 Thursday 21 July 2022 20:46:22 +0000 (0:00:00.539) 0:00:08.711 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:73 Thursday 21 July 2022 20:46:23 +0000 (0:00:00.063) 0:00:08.775 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:81 Thursday 21 July 2022 20:46:23 +0000 (0:00:00.053) 0:00:08.828 ********* included: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml for /cache/fedora-36.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:46:23 +0000 (0:00:00.028) 0:00:08.857 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.mzurqa28//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.mzurqa28//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.006124", "end": "2022-07-21 20:46:22.617809", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:46:22.611685" } ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.mzurqa28//etc/ssh/ssh_config; then\n cp /tmp/ansible.mzurqa28//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.006287", "end": "2022-07-21 20:46:22.982517", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:46:22.976230" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:46:23 +0000 (0:00:00.785) 0:00:09.642 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.mzurqa28", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:46:24 +0000 (0:00:00.530) 0:00:10.173 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.84s /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.75s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.19s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.15s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:2 -------------------------- Backup files ------------------------------------------------------------ 0.91s /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:13 -------------------------------- Restore backed up files and remove what was not present ----------------- 0.79s /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:2 -------------------------------- Download the global configuration file ---------------------------------- 0.54s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:50 ------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.54s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.53s /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:15 ------------------------------- Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:5 --------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:55 ------------------------- Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:73 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Setup ------------------------------------------------------------------- 0.05s /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:2 --------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:14 ------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:81 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp7s9fngkn/tests/ssh/tests_global_config.yml:11 ------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:2 ----------------------------------