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/tmpppg9msr1 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Thursday 21 July 2022 20:33:28 +0000 (0:00:00.019) 0:00:00.019 ********* changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.193198", "end": "2022-07-21 20:33:28.443535", "rc": 0, "start": "2022-07-21 20:33:28.250337" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:33:29 +0000 (0:00:00.774) 0:00:00.793 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_custom_config.yml ********************************************** 1 plays in /tmp/tmptdmnrt7v/tests/tests_custom_config.yml PLAY [Test we can write any other configuration file] ************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:2 Thursday 21 July 2022 20:33:29 +0000 (0:00:00.011) 0:00:00.805 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Run role] **************************************************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:5 Thursday 21 July 2022 20:33:30 +0000 (0:00:01.037) 0:00:01.843 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:33:30 +0000 (0:00:00.031) 0:00:01.875 ********* included: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:33:30 +0000 (0:00:00.027) 0:00:01.903 ********* ok: [/cache/centos-8.qcow2] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:33:30 +0000 (0:00:00.502) 0:00:02.405 ********* skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:33:30 +0000 (0:00:00.060) 0:00:02.466 ********* ok: [/cache/centos-8.qcow2] => { "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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:33:33 +0000 (0:00:02.344) 0:00:04.810 ********* skipping: [/cache/centos-8.qcow2] => { "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/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:33:33 +0000 (0:00:00.025) 0:00:04.836 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:33:33 +0000 (0:00:00.024) 0:00:04.861 ********* changed: [/cache/centos-8.qcow2] => { "backup_file": "/tmp/ssh_config.15785.2022-07-21@20:33:33~", "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-1658435613.2197995-56499-196683928820505/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the custom configuration file] ********************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:17 Thursday 21 July 2022 20:33:34 +0000 (0:00:01.107) 0:00:05.968 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:22 Thursday 21 July 2022 20:33:34 +0000 (0:00:00.492) 0:00:06.461 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=9 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:33:34 +0000 (0:00:00.055) 0:00:06.516 ********* =============================================================================== linux-system-roles.ssh : Ensure required packages are installed --------- 2.34s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.11s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:2 ------------------------------ Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.50s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Download the custom configuration file ---------------------------------- 0.49s /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:17 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the options are in the file -------------------------------------- 0.06s /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:22 ----------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_custom_config.yml:5 ------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmptdmnrt7v/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/tmptdmnrt7v/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/tmptdmnrt7v/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/tmpppg9msr1 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Thursday 21 July 2022 20:37:29 +0000 (0:00:00.018) 0:00:00.018 ********* changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.195103", "end": "2022-07-21 20:37:28.878566", "rc": 0, "start": "2022-07-21 20:37:28.683463" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:37:30 +0000 (0:00:00.784) 0:00:00.803 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_custom_config.yml ********************************************** 1 plays in /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml PLAY [Test we can write any other configuration file] ************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:2 Thursday 21 July 2022 20:37:30 +0000 (0:00:00.012) 0:00:00.815 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Run role] **************************************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:5 Thursday 21 July 2022 20:37:31 +0000 (0:00:01.011) 0:00:01.827 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:37:31 +0000 (0:00:00.034) 0:00:01.861 ********* included: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:37:31 +0000 (0:00:00.028) 0:00:01.890 ********* ok: [/cache/centos-8.qcow2] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:37:31 +0000 (0:00:00.514) 0:00:02.404 ********* skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [/cache/centos-8.qcow2] => (item=CentOS_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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:37:31 +0000 (0:00:00.061) 0:00:02.466 ********* ok: [/cache/centos-8.qcow2] => { "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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:37:33 +0000 (0:00:02.306) 0:00:04.773 ********* skipping: [/cache/centos-8.qcow2] => { "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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:37:34 +0000 (0:00:00.022) 0:00:04.795 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:37:34 +0000 (0:00:00.022) 0:00:04.818 ********* changed: [/cache/centos-8.qcow2] => { "backup_file": "/tmp/ssh_config.15783.2022-07-21@20:37:33~", "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-1658435854.1053839-60216-209509854953872/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the custom configuration file] ********************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:17 Thursday 21 July 2022 20:37:35 +0000 (0:00:01.102) 0:00:05.920 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:22 Thursday 21 July 2022 20:37:35 +0000 (0:00:00.471) 0:00:06.391 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=9 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Thursday 21 July 2022 20:37:35 +0000 (0:00:00.051) 0:00:06.443 ********* =============================================================================== fedora.linux_system_roles.ssh : Ensure required packages are installed --- 2.31s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.10s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:2 -------------------------- Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.51s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Download the custom configuration file ---------------------------------- 0.47s /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:17 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Verify the options are in the file -------------------------------------- 0.05s /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:22 ------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_custom_config.yml:5 -------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpppg9msr1/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.02s /tmp/tmpppg9msr1/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/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17