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_custom_config.yml ********************************************** 1 plays in /tmp/tmp46lt5otd/tests/tests_custom_config.yml PLAY [Test we can write any other configuration file] ************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp46lt5otd/tests/tests_custom_config.yml:2 Thursday 21 July 2022 20:19:49 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Run role] **************************************************************** task path: /tmp/tmp46lt5otd/tests/tests_custom_config.yml:5 Thursday 21 July 2022 20:19:50 +0000 (0:00:01.130) 0:00:01.143 ********* 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:19:50 +0000 (0:00:00.031) 0:00:01.174 ********* 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:19:50 +0000 (0:00:00.025) 0:00:01.200 ********* 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:19:51 +0000 (0:00:00.529) 0:00:01.729 ********* 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:19:51 +0000 (0:00:00.050) 0:00:01.780 ********* 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:19:52 +0000 (0:00:01.397) 0:00:03.177 ********* 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:19:52 +0000 (0:00:00.023) 0:00:03.201 ********* 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:19:52 +0000 (0:00:00.021) 0:00:03.223 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "backup_file": "/tmp/ssh_config.12408.2022-07-21@16:19:54~", "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config", "gid": 0, "group": "root", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1658434792.734885-39924-89125193365522/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Download the custom configuration file] ********************************** task path: /tmp/tmp46lt5otd/tests/tests_custom_config.yml:17 Thursday 21 July 2022 20:19:53 +0000 (0:00:01.090) 0:00:04.314 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmp46lt5otd/tests/tests_custom_config.yml:22 Thursday 21 July 2022 20:19:54 +0000 (0:00:00.479) 0:00:04.793 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=8 changed=1 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:19:54 +0000 (0:00:00.056) 0:00:04.849 ********* =============================================================================== linux-system-roles.ssh : Ensure required packages are installed --------- 1.40s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp46lt5otd/tests/tests_custom_config.yml:2 ------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 1.09s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.53s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Download the custom configuration file ---------------------------------- 0.48s /tmp/tmp46lt5otd/tests/tests_custom_config.yml:17 ----------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmp46lt5otd/tests/tests_custom_config.yml:22 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Run role ---------------------------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_custom_config.yml:5 ------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmp46lt5otd/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.02s /tmp/tmp46lt5otd/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/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_custom_config.yml ********************************************** 1 plays in /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml PLAY [Test we can write any other configuration file] ************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:2 Thursday 21 July 2022 20:22:26 +0000 (0:00:00.012) 0:00:00.013 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Run role] **************************************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:5 Thursday 21 July 2022 20:22:27 +0000 (0:00:01.142) 0:00:01.155 ********* 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:27 +0000 (0:00:00.036) 0:00:01.192 ********* 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:27 +0000 (0:00:00.029) 0:00:01.222 ********* 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:28 +0000 (0:00:00.540) 0:00:01.763 ********* 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:28 +0000 (0:00:00.049) 0:00:01.812 ********* 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:29 +0000 (0:00:01.443) 0:00:03.256 ********* 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:29 +0000 (0:00:00.025) 0:00:03.282 ********* 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:29 +0000 (0:00:00.023) 0:00:03.305 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "backup_file": "/tmp/ssh_config.12404.2022-07-21@16:22:30~", "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config", "gid": 0, "group": "root", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1658434949.8221037-43300-236049629118167/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Download the custom configuration file] ********************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:17 Thursday 21 July 2022 20:22:30 +0000 (0:00:01.077) 0:00:04.382 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:22 Thursday 21 July 2022 20:22:31 +0000 (0:00:00.461) 0:00:04.844 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=8 changed=1 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:22:31 +0000 (0:00:00.055) 0:00:04.899 ********* =============================================================================== fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.44s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.14s /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:2 -------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.08s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.54s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Download the custom configuration file ---------------------------------- 0.46s /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:17 ------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpni6azq3t/tests/ssh/tests_custom_config.yml:22 ------------------------- 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_custom_config.yml:5 -------------------------- 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 fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /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