ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmptxteqxd0 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_global_config.yml ********************************************** 1 plays in /tmp/tmp46lt5otd/tests/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp46lt5otd/tests/tests_global_config.yml:2 Thursday 21 July 2022 20:20:13 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp46lt5otd/tests/tests_global_config.yml:11 Thursday 21 July 2022 20:20:14 +0000 (0:00:01.133) 0:00:01.146 ********* included: /tmp/tmp46lt5otd/tests/tasks/backup.yml for /cache/rhel-8-y.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp46lt5otd/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:20:14 +0000 (0:00:00.027) 0:00:01.173 ********* included: /tmp/tmp46lt5otd/tests/tasks/setup.yml for /cache/rhel-8-y.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp46lt5otd/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:20:14 +0000 (0:00:00.026) 0:00:01.200 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp46lt5otd/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:20:14 +0000 (0:00:00.041) 0:00:01.242 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp46lt5otd/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:20:15 +0000 (0:00:01.414) 0:00:02.657 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._5or4gmr", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp46lt5otd/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:20:16 +0000 (0:00:00.501) 0:00:03.158 ********* ok: [/cache/rhel-8-y.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._5or4gmr/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible._5or4gmr/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.011226", "end": "2022-07-21 16:20:17.185371", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:20:17.174145" } ok: [/cache/rhel-8-y.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._5or4gmr/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible._5or4gmr/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008444", "end": "2022-07-21 16:20:17.545706", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:20:17.537262" } TASK [Run role] **************************************************************** task path: /tmp/tmp46lt5otd/tests/tests_global_config.yml:14 Thursday 21 July 2022 20:20:17 +0000 (0:00:00.872) 0:00:04.031 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:20:17 +0000 (0:00:00.034) 0:00:04.065 ********* included: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:20:17 +0000 (0:00:00.027) 0:00:04.093 ********* ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:20:17 +0000 (0:00:00.508) 0:00:04.602 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:20:17 +0000 (0:00:00.053) 0:00:04.655 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:20:19 +0000 (0:00:01.244) 0:00:05.900 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:20:19 +0000 (0:00:00.025) 0:00:05.925 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:20:19 +0000 (0:00:00.023) 0:00:05.948 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.15778.2022-07-21@16:20:20~", "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-1658434819.2082102-40525-102977899493327/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmp46lt5otd/tests/tests_global_config.yml:50 Thursday 21 July 2022 20:20:20 +0000 (0:00:01.122) 0:00:07.071 ********* ok: [/cache/rhel-8-y.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/tmp46lt5otd/tests/tests_global_config.yml:55 Thursday 21 July 2022 20:20:20 +0000 (0:00:00.512) 0:00:07.583 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmp46lt5otd/tests/tests_global_config.yml:73 Thursday 21 July 2022 20:20:20 +0000 (0:00:00.066) 0:00:07.650 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp46lt5otd/tests/tests_global_config.yml:81 Thursday 21 July 2022 20:20:20 +0000 (0:00:00.051) 0:00:07.701 ********* included: /tmp/tmp46lt5otd/tests/tasks/restore.yml for /cache/rhel-8-y.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp46lt5otd/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:20:20 +0000 (0:00:00.027) 0:00:07.729 ********* ok: [/cache/rhel-8-y.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._5or4gmr//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible._5or4gmr//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.005367", "end": "2022-07-21 16:20:21.631884", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:20:21.626517" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._5or4gmr//etc/ssh/ssh_config; then\n cp /tmp/ansible._5or4gmr//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.005447", "end": "2022-07-21 16:20:21.987977", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:20:21.982530" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp46lt5otd/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:20:21 +0000 (0:00:00.744) 0:00:08.473 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/tmp/ansible._5or4gmr", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:20:22 +0000 (0:00:00.524) 0:00:08.997 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.41s /tmp/tmp46lt5otd/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.24s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp46lt5otd/tests/tests_global_config.yml:2 ------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 1.12s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Backup files ------------------------------------------------------------ 0.87s /tmp/tmp46lt5otd/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.74s /tmp/tmp46lt5otd/tests/tasks/restore.yml:2 ------------------------------------ Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmp46lt5otd/tests/tasks/restore.yml:15 ----------------------------------- Download the global configuration file ---------------------------------- 0.51s /tmp/tmp46lt5otd/tests/tests_global_config.yml:50 ----------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.51s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.50s /tmp/tmp46lt5otd/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.07s /tmp/tmp46lt5otd/tests/tests_global_config.yml:55 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmp46lt5otd/tests/tests_global_config.yml:73 ----------------------------- Ensure facts used by test ----------------------------------------------- 0.04s /tmp/tmp46lt5otd/tests/tasks/setup.yml:2 -------------------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_global_config.yml:14 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_global_config.yml:11 ----------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_global_config.yml:81 ----------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp46lt5otd/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/tmptxteqxd0 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_global_config.yml ********************************************** 1 plays in /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:2 Thursday 21 July 2022 20:22:49 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:11 Thursday 21 July 2022 20:22:50 +0000 (0:00:01.099) 0:00:01.111 ********* included: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml for /cache/rhel-8-y.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:22:50 +0000 (0:00:00.028) 0:00:01.139 ********* included: /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml for /cache/rhel-8-y.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:22:51 +0000 (0:00:00.029) 0:00:01.169 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:22:51 +0000 (0:00:00.022) 0:00:01.192 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:22:52 +0000 (0:00:01.418) 0:00:02.610 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.w0tcx4ci", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:22:52 +0000 (0:00:00.474) 0:00:03.085 ********* ok: [/cache/rhel-8-y.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.w0tcx4ci/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.w0tcx4ci/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.010723", "end": "2022-07-21 16:22:52.854404", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:22:52.843681" } ok: [/cache/rhel-8-y.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.w0tcx4ci/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.w0tcx4ci/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008088", "end": "2022-07-21 16:22:53.206558", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:22:53.198470" } TASK [Run role] **************************************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:14 Thursday 21 July 2022 20:22:53 +0000 (0:00:00.861) 0:00:03.947 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:22:53 +0000 (0:00:00.037) 0:00:03.984 ********* included: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:22:53 +0000 (0:00:00.027) 0:00:04.012 ********* ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:22:54 +0000 (0:00:00.519) 0:00:04.531 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:22:54 +0000 (0:00:00.050) 0:00:04.582 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:22:55 +0000 (0:00:01.241) 0:00:05.823 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:22:55 +0000 (0:00:00.024) 0:00:05.848 ********* skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:22:55 +0000 (0:00:00.024) 0:00:05.873 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.15774.2022-07-21@16:22:56~", "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-1658434975.8021936-43908-194648008313825/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:50 Thursday 21 July 2022 20:22:56 +0000 (0:00:01.103) 0:00:06.977 ********* ok: [/cache/rhel-8-y.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/tmpni6azq3t/tests/ssh/tests_global_config.yml:55 Thursday 21 July 2022 20:22:57 +0000 (0:00:00.544) 0:00:07.521 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:73 Thursday 21 July 2022 20:22:57 +0000 (0:00:00.063) 0:00:07.584 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:81 Thursday 21 July 2022 20:22:57 +0000 (0:00:00.051) 0:00:07.636 ********* included: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml for /cache/rhel-8-y.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:22:57 +0000 (0:00:00.026) 0:00:07.663 ********* ok: [/cache/rhel-8-y.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.w0tcx4ci//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.w0tcx4ci//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.007081", "end": "2022-07-21 16:22:57.327630", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:22:57.320549" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.w0tcx4ci//etc/ssh/ssh_config; then\n cp /tmp/ansible.w0tcx4ci//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.006326", "end": "2022-07-21 16:22:57.693024", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:22:57.686698" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:22:58 +0000 (0:00:00.772) 0:00:08.435 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.w0tcx4ci", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:22:58 +0000 (0:00:00.519) 0:00:08.955 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.42s /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.24s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.10s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.10s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:2 -------------------------- Backup files ------------------------------------------------------------ 0.86s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:13 -------------------------------- Restore backed up files and remove what was not present ----------------- 0.77s /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:2 -------------------------------- Download the global configuration file ---------------------------------- 0.54s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:50 ------------------------- Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.52s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.47s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:5 --------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:55 ------------------------- Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:73 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Run role ---------------------------------------------------------------- 0.04s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:14 ------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:2 --------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:11 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_global_config.yml:81 ------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17