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_precedence.yml ************************************************* 1 plays in /tmp/tmp46lt5otd/tests/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp46lt5otd/tests/tests_precedence.yml:2 Thursday 21 July 2022 20:21:21 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp46lt5otd/tests/tests_precedence.yml:11 Thursday 21 July 2022 20:21:22 +0000 (0:00:01.132) 0:00:01.147 ********* 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:21:22 +0000 (0:00:00.026) 0:00:01.174 ********* 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:21:22 +0000 (0:00:00.026) 0:00:01.201 ********* 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:21:22 +0000 (0:00:00.025) 0:00:01.226 ********* 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:21:23 +0000 (0:00:01.422) 0:00:02.649 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.byi5eut3", "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:21:24 +0000 (0:00:00.474) 0:00:03.124 ********* 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.byi5eut3/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.byi5eut3/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.007950", "end": "2022-07-21 16:21:25.056599", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:21:25.048649" } 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.byi5eut3/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.byi5eut3/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007424", "end": "2022-07-21 16:21:25.404203", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:21:25.396779" } TASK [Run role] **************************************************************** task path: /tmp/tmp46lt5otd/tests/tests_precedence.yml:14 Thursday 21 July 2022 20:21:25 +0000 (0:00:00.858) 0:00:03.982 ********* 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:21:25 +0000 (0:00:00.045) 0:00:04.028 ********* 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:21:25 +0000 (0:00:00.035) 0:00:04.063 ********* 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:21:25 +0000 (0:00:00.512) 0:00:04.577 ********* 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:21:25 +0000 (0:00:00.048) 0:00:04.625 ********* 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:21:27 +0000 (0:00:01.303) 0:00:05.929 ********* 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:21:27 +0000 (0:00:00.024) 0:00:05.954 ********* 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:21:27 +0000 (0:00:00.024) 0:00:05.978 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.24849.2022-07-21@16:21:28~", "changed": true, "checksum": "2771a93b02b62ba49a971a92a8f08cd527a3ef0a", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "d3ac25fe0e97e20c58467fe15bdd8cca", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 57, "src": "/root/.ansible/tmp/ansible-tmp-1658434887.1551085-42225-82369642371993/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_precedence.yml:36 Thursday 21 July 2022 20:21:28 +0000 (0:00:01.212) 0:00:07.190 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMK", "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_precedence.yml:41 Thursday 21 July 2022 20:21:28 +0000 (0:00:00.489) 0:00:07.680 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmp46lt5otd/tests/tests_precedence.yml:49 Thursday 21 July 2022 20:21:28 +0000 (0:00:00.050) 0:00:07.731 ********* 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:21:28 +0000 (0:00:00.027) 0:00:07.758 ********* 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.byi5eut3//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.byi5eut3//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.006375", "end": "2022-07-21 16:21:29.565294", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:21:29.558919" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.byi5eut3//etc/ssh/ssh_config; then\n cp /tmp/ansible.byi5eut3//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.005172", "end": "2022-07-21 16:21:29.915309", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:21:29.910137" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp46lt5otd/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:21:29 +0000 (0:00:00.732) 0:00:08.491 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.byi5eut3", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:21:30 +0000 (0:00:00.519) 0:00:09.011 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.42s /tmp/tmp46lt5otd/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.30s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.21s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp46lt5otd/tests/tests_precedence.yml:2 --------------------------------- Backup files ------------------------------------------------------------ 0.86s /tmp/tmp46lt5otd/tests/tasks/backup.yml:13 ------------------------------------ Restore backed up files and remove what was not present ----------------- 0.73s /tmp/tmp46lt5otd/tests/tasks/restore.yml:2 ------------------------------------ Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmp46lt5otd/tests/tasks/restore.yml:15 ----------------------------------- 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 ------ Download the global configuration file ---------------------------------- 0.49s /tmp/tmp46lt5otd/tests/tests_precedence.yml:36 -------------------------------- Create a temporary directory for backup files --------------------------- 0.47s /tmp/tmp46lt5otd/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.05s /tmp/tmp46lt5otd/tests/tests_precedence.yml:41 -------------------------------- 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.05s /tmp/tmp46lt5otd/tests/tests_precedence.yml:14 -------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.04s /tmp/tmp46lt5otd/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_precedence.yml:49 -------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tests_precedence.yml:11 -------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tasks/backup.yml:2 ------------------------------------- Ensure facts used by test ----------------------------------------------- 0.03s /tmp/tmp46lt5otd/tests/tasks/setup.yml:2 -------------------------------------- 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 --------- 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 --------- 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_precedence.yml ************************************************* 1 plays in /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:2 Thursday 21 July 2022 20:23:58 +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_precedence.yml:11 Thursday 21 July 2022 20:23:59 +0000 (0:00:01.125) 0:00:01.137 ********* 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:23:59 +0000 (0:00:00.025) 0:00:01.163 ********* 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:23:59 +0000 (0:00:00.025) 0:00:01.189 ********* 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:23:59 +0000 (0:00:00.019) 0:00:01.208 ********* 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:24:00 +0000 (0:00:01.391) 0:00:02.600 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._eq0pz6h", "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:24:01 +0000 (0:00:00.476) 0:00:03.077 ********* 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._eq0pz6h/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible._eq0pz6h/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.007657", "end": "2022-07-21 16:24:01.047806", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:24:01.040149" } 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._eq0pz6h/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible._eq0pz6h/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007504", "end": "2022-07-21 16:24:01.392958", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:24:01.385454" } TASK [Run role] **************************************************************** task path: /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:14 Thursday 21 July 2022 20:24:01 +0000 (0:00:00.837) 0:00:03.914 ********* 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:24:02 +0000 (0:00:00.035) 0:00:03.949 ********* 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:24:02 +0000 (0:00:00.027) 0:00:03.977 ********* 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:24:02 +0000 (0:00:00.525) 0:00:04.502 ********* 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:24:02 +0000 (0:00:00.055) 0:00:04.558 ********* 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:24:03 +0000 (0:00:01.288) 0:00:05.846 ********* 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:24:03 +0000 (0:00:00.023) 0:00:05.870 ********* 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:24:03 +0000 (0:00:00.022) 0:00:05.892 ********* changed: [/cache/rhel-8-y.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.24845.2022-07-21@16:24:04~", "changed": true, "checksum": "2771a93b02b62ba49a971a92a8f08cd527a3ef0a", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "d3ac25fe0e97e20c58467fe15bdd8cca", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 57, "src": "/root/.ansible/tmp/ansible-tmp-1658435044.0388947-45608-270685850130850/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_precedence.yml:36 Thursday 21 July 2022 20:24:05 +0000 (0:00:01.137) 0:00:07.030 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMK", "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_precedence.yml:41 Thursday 21 July 2022 20:24:05 +0000 (0:00:00.511) 0:00:07.541 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:49 Thursday 21 July 2022 20:24:05 +0000 (0:00:00.056) 0:00:07.598 ********* 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:24:05 +0000 (0:00:00.025) 0:00:07.624 ********* 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._eq0pz6h//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible._eq0pz6h//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.007262", "end": "2022-07-21 16:24:05.509628", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:24:05.502366" } ok: [/cache/rhel-8-y.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._eq0pz6h//etc/ssh/ssh_config; then\n cp /tmp/ansible._eq0pz6h//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.006780", "end": "2022-07-21 16:24:05.889017", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:24:05.882237" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:24:06 +0000 (0:00:00.795) 0:00:08.419 ********* ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/tmp/ansible._eq0pz6h", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:24:07 +0000 (0:00:00.514) 0:00:08.933 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.39s /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.29s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.14s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:2 ----------------------------- Backup files ------------------------------------------------------------ 0.84s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:13 -------------------------------- Restore backed up files and remove what was not present ----------------- 0.80s /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.53s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.51s /tmp/tmpni6azq3t/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.51s /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:36 ---------------------------- Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:5 --------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:41 ---------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmptxteqxd0/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Run role ---------------------------------------------------------------- 0.04s /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:14 ---------------------------- 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 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:11 ---------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tests_precedence.yml:49 ---------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpni6azq3t/tests/ssh/tasks/backup.yml:2 --------------------------------- 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 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpni6azq3t/tests/ssh/tasks/setup.yml:2 ----------------------------------