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/tmpn177r5cy 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Thursday 21 July 2022 20:01:29 +0000 (0:00:00.018) 0:00:00.018 ********* ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:01:30 +0000 (0:00:01.317) 0:00:01.336 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.32s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml PLAY [Test we can write any other configuration file as a drop-in] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:01:30 +0000 (0:00:00.011) 0:00:01.347 ********* ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:01:31 +0000 (0:00:01.073) 0:00:02.420 ********* META: end_host conditional evaluated to false, continuing execution for /cache/rhel-8.qcow2 skipping: [/cache/rhel-8.qcow2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/rhel-8.qcow2" } MSG: end_host conditional evaluated to false, continuing execution for /cache/rhel-8.qcow2 TASK [Backup configuration files] ********************************************** task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:17 Thursday 21 July 2022 20:01:31 +0000 (0:00:00.028) 0:00:02.449 ********* included: /tmp/tmprk79jc_d/tests/tasks/backup.yml for /cache/rhel-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmprk79jc_d/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:01:31 +0000 (0:00:00.026) 0:00:02.476 ********* included: /tmp/tmprk79jc_d/tests/tasks/setup.yml for /cache/rhel-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmprk79jc_d/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:01:31 +0000 (0:00:00.026) 0:00:02.503 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmprk79jc_d/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:01:31 +0000 (0:00:00.018) 0:00:02.521 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmprk79jc_d/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:01:33 +0000 (0:00:01.444) 0:00:03.966 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.1ywzb3pd", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmprk79jc_d/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:01:33 +0000 (0:00:00.480) 0:00:04.447 ********* ok: [/cache/rhel-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ssh_config.d_00-ansible.conf; then\n mkdir -p /tmp/ansible.1ywzb3pd/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.1ywzb3pd/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.004154", "end": "2022-07-21 16:01:33.173727", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:01:33.169573" } TASK [Run role] **************************************************************** task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:20 Thursday 21 July 2022 20:01:34 +0000 (0:00:00.494) 0:00:04.942 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:01:34 +0000 (0:00:00.034) 0:00:04.976 ********* included: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:01:34 +0000 (0:00:00.027) 0:00:05.003 ********* ok: [/cache/rhel-8.qcow2] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:01:34 +0000 (0:00:00.499) 0:00:05.503 ********* skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8.qcow2] => (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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.6.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.6.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:01:34 +0000 (0:00:00.051) 0:00:05.554 ********* ok: [/cache/rhel-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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:01:36 +0000 (0:00:01.270) 0:00:06.825 ********* skipping: [/cache/rhel-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/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:01:36 +0000 (0:00:00.027) 0:00:06.852 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:01:36 +0000 (0:00:00.033) 0:00:06.886 ********* changed: [/cache/rhel-8.qcow2] => { "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config.d_00-ansible.conf", "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-1658433696.3463008-18027-270200864861345/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8.qcow2 TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:31 Thursday 21 July 2022 20:01:37 +0000 (0:00:01.107) 0:00:07.993 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config.d_00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:36 Thursday 21 July 2022 20:01:37 +0000 (0:00:00.487) 0:00:08.480 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:45 Thursday 21 July 2022 20:01:37 +0000 (0:00:00.034) 0:00:08.514 ********* included: /tmp/tmprk79jc_d/tests/tasks/restore.yml for /cache/rhel-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmprk79jc_d/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:01:37 +0000 (0:00:00.026) 0:00:08.541 ********* ok: [/cache/rhel-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.1ywzb3pd//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.1ywzb3pd//tmp/ssh_config.d_00-ansible.conf $(dirname /tmp/ssh_config.d_00-ansible.conf)\nelif test -f /tmp/ssh_config.d_00-ansible.conf; then\n rm /tmp/ssh_config.d_00-ansible.conf\nfi\n", "delta": "0:00:00.004544", "end": "2022-07-21 16:01:37.163290", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:01:37.158746" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmprk79jc_d/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:01:38 +0000 (0:00:00.388) 0:00:08.930 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "path": "/tmp/ansible.1ywzb3pd", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:01:38 +0000 (0:00:00.522) 0:00:09.452 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.44s /tmp/tmprk79jc_d/tests/tasks/setup.yml:7 -------------------------------------- set up internal repositories -------------------------------------------- 1.32s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.27s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.11s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:2 ----------------------------- Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmprk79jc_d/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.50s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Backup files ------------------------------------------------------------ 0.49s /tmp/tmprk79jc_d/tests/tasks/backup.yml:13 ------------------------------------ Download the custom configuration file drop-in -------------------------- 0.49s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:31 ---------------------------- Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmprk79jc_d/tests/tasks/backup.yml:5 ------------------------------------- Restore backed up files and remove what was not present ----------------- 0.39s /tmp/tmprk79jc_d/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the options are in the file -------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:36 ---------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:20 ---------------------------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:10 ---------------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmprk79jc_d/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:17 ---------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmprk79jc_d/tests/tests_custom_drop_in.yml:45 ---------------------------- 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/tmpn177r5cy 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Thursday 21 July 2022 20:04:29 +0000 (0:00:00.017) 0:00:00.017 ********* ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:04:30 +0000 (0:00:01.287) 0:00:01.305 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml PLAY [Test we can write any other configuration file as a drop-in] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:2 Thursday 21 July 2022 20:04:30 +0000 (0:00:00.011) 0:00:01.316 ********* ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:10 Thursday 21 July 2022 20:04:31 +0000 (0:00:01.049) 0:00:02.366 ********* META: end_host conditional evaluated to false, continuing execution for /cache/rhel-8.qcow2 skipping: [/cache/rhel-8.qcow2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/rhel-8.qcow2" } MSG: end_host conditional evaluated to false, continuing execution for /cache/rhel-8.qcow2 TASK [Backup configuration files] ********************************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:15 Thursday 21 July 2022 20:04:31 +0000 (0:00:00.027) 0:00:02.394 ********* included: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml for /cache/rhel-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:04:31 +0000 (0:00:00.025) 0:00:02.419 ********* included: /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml for /cache/rhel-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:04:31 +0000 (0:00:00.024) 0:00:02.444 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:04:31 +0000 (0:00:00.019) 0:00:02.463 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:04:33 +0000 (0:00:01.467) 0:00:03.930 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.6gashewl", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:04:33 +0000 (0:00:00.470) 0:00:04.400 ********* ok: [/cache/rhel-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ssh_config.d_00-ansible.conf; then\n mkdir -p /tmp/ansible.6gashewl/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.6gashewl/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.003438", "end": "2022-07-21 16:04:33.916016", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:04:33.912578" } TASK [Run role] **************************************************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:18 Thursday 21 July 2022 20:04:33 +0000 (0:00:00.489) 0:00:04.890 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:04:34 +0000 (0:00:00.036) 0:00:04.927 ********* included: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:04:34 +0000 (0:00:00.027) 0:00:04.954 ********* ok: [/cache/rhel-8.qcow2] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:04:34 +0000 (0:00:00.500) 0:00:05.455 ********* skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-8.qcow2] => (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/tmpn177r5cy/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.qcow2] => (item=RedHat_8.6.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.6.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:04:34 +0000 (0:00:00.052) 0:00:05.507 ********* ok: [/cache/rhel-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/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:04:35 +0000 (0:00:01.262) 0:00:06.769 ********* skipping: [/cache/rhel-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/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:04:35 +0000 (0:00:00.021) 0:00:06.791 ********* skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:04:35 +0000 (0:00:00.021) 0:00:06.813 ********* changed: [/cache/rhel-8.qcow2] => { "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config.d_00-ansible.conf", "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-1658433875.9811282-22050-99447650586714/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-8.qcow2 TASK [Download the custom configuration file drop-in] ************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:29 Thursday 21 July 2022 20:04:37 +0000 (0:00:01.098) 0:00:07.912 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config.d_00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:34 Thursday 21 July 2022 20:04:37 +0000 (0:00:00.487) 0:00:08.400 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:43 Thursday 21 July 2022 20:04:37 +0000 (0:00:00.034) 0:00:08.434 ********* included: /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml for /cache/rhel-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:04:37 +0000 (0:00:00.024) 0:00:08.458 ********* ok: [/cache/rhel-8.qcow2] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.6gashewl//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.6gashewl//tmp/ssh_config.d_00-ansible.conf $(dirname /tmp/ssh_config.d_00-ansible.conf)\nelif test -f /tmp/ssh_config.d_00-ansible.conf; then\n rm /tmp/ssh_config.d_00-ansible.conf\nfi\n", "delta": "0:00:00.004376", "end": "2022-07-21 16:04:37.865909", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-07-21 16:04:37.861533" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:04:37 +0000 (0:00:00.379) 0:00:08.838 ********* ok: [/cache/rhel-8.qcow2] => { "changed": false, "path": "/tmp/ansible.6gashewl", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:04:38 +0000 (0:00:00.511) 0:00:09.349 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.47s /tmp/tmpl5tsfk0r/tests/ssh/tasks/setup.yml:7 ---------------------------------- set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.26s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.10s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:2 ------------------------- Remove temporary directory for backup files ----------------------------- 0.51s /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.50s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Backup files ------------------------------------------------------------ 0.49s /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:13 -------------------------------- Download the custom configuration file drop-in -------------------------- 0.49s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:29 ------------------------ Create a temporary directory for backup files --------------------------- 0.47s /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:5 --------------------------------- Restore backed up files and remove what was not present ----------------- 0.38s /tmp/tmpl5tsfk0r/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Run role ---------------------------------------------------------------- 0.04s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:18 ------------------------ Verify the options are in the file -------------------------------------- 0.03s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:34 ------------------------ Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:10 ------------------------ fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:15 ------------------------ Setup ------------------------------------------------------------------- 0.02s /tmp/tmpl5tsfk0r/tests/ssh/tasks/backup.yml:2 --------------------------------- Restore configuration files --------------------------------------------- 0.02s /tmp/tmpl5tsfk0r/tests/ssh/tests_custom_drop_in.yml:43 ------------------------ fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpn177r5cy/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17