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:35:35 +0000 (0:00:00.017) 0:00:00.017 ********* 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.204778", "end": "2022-07-21 20:35:35.198537", "rc": 0, "start": "2022-07-21 20:35:34.993759" } 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:35:35 +0000 (0:00:00.786) 0:00:00.804 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_precedence.yml ************************************************* 1 plays in /tmp/tmptdmnrt7v/tests/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_precedence.yml:2 Thursday 21 July 2022 20:35:35 +0000 (0:00:00.013) 0:00:00.818 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmptdmnrt7v/tests/tests_precedence.yml:11 Thursday 21 July 2022 20:35:36 +0000 (0:00:01.036) 0:00:01.854 ********* included: /tmp/tmptdmnrt7v/tests/tasks/backup.yml for /cache/centos-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmptdmnrt7v/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:35:36 +0000 (0:00:00.026) 0:00:01.880 ********* included: /tmp/tmptdmnrt7v/tests/tasks/setup.yml for /cache/centos-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmptdmnrt7v/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:35:36 +0000 (0:00:00.025) 0:00:01.906 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:35:36 +0000 (0:00:00.021) 0:00:01.927 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmptdmnrt7v/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:35:54 +0000 (0:00:17.318) 0:00:19.246 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.5k1yrelo", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:35:54 +0000 (0:00:00.486) 0:00:19.732 ********* ok: [/cache/centos-8.qcow2] => (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.5k1yrelo/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.5k1yrelo/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.008050", "end": "2022-07-21 20:35:54.522423", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:54.514373" } ok: [/cache/centos-8.qcow2] => (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.5k1yrelo/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.5k1yrelo/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007950", "end": "2022-07-21 20:35:54.859122", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:35:54.851172" } TASK [Run role] **************************************************************** task path: /tmp/tmptdmnrt7v/tests/tests_precedence.yml:14 Thursday 21 July 2022 20:35:55 +0000 (0:00:00.724) 0:00:20.457 ********* 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:35:55 +0000 (0:00:00.031) 0:00:20.488 ********* 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:35:55 +0000 (0:00:00.025) 0:00:20.513 ********* 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:35:56 +0000 (0:00:00.514) 0:00:21.027 ********* 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:35:56 +0000 (0:00:00.056) 0:00:21.084 ********* 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:35:57 +0000 (0:00:01.775) 0:00:22.860 ********* 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:35:57 +0000 (0:00:00.023) 0:00:22.883 ********* 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:35:57 +0000 (0:00:00.022) 0:00:22.905 ********* changed: [/cache/centos-8.qcow2] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.29099.2022-07-21@20:35:58~", "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-1658435758.0135584-58962-65961677464386/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the global configuration file] ********************************** task path: /tmp/tmptdmnrt7v/tests/tests_precedence.yml:36 Thursday 21 July 2022 20:35:59 +0000 (0:00:01.117) 0:00:24.023 ********* ok: [/cache/centos-8.qcow2] => { "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/tmptdmnrt7v/tests/tests_precedence.yml:41 Thursday 21 July 2022 20:35:59 +0000 (0:00:00.490) 0:00:24.513 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmptdmnrt7v/tests/tests_precedence.yml:49 Thursday 21 July 2022 20:35:59 +0000 (0:00:00.072) 0:00:24.586 ********* included: /tmp/tmptdmnrt7v/tests/tasks/restore.yml for /cache/centos-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:35:59 +0000 (0:00:00.025) 0:00:24.612 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.5k1yrelo//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.5k1yrelo//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.006159", "end": "2022-07-21 20:35:59.410109", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:35:59.403950" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.5k1yrelo//etc/ssh/ssh_config; then\n cp /tmp/ansible.5k1yrelo//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.006122", "end": "2022-07-21 20:35:59.799906", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:35:59.793784" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:36:00 +0000 (0:00:00.788) 0:00:25.400 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.5k1yrelo", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=17 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:36:00 +0000 (0:00:00.531) 0:00:25.932 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------ 17.32s /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.78s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.12s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmptdmnrt7v/tests/tests_precedence.yml:2 --------------------------------- Restore backed up files and remove what was not present ----------------- 0.79s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 ------------------------------------ Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- Backup files ------------------------------------------------------------ 0.72s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 ------------------------------------ Remove temporary directory for backup files ----------------------------- 0.53s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.51s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Download the global configuration file ---------------------------------- 0.49s /tmp/tmptdmnrt7v/tests/tests_precedence.yml:36 -------------------------------- Create a temporary directory for backup files --------------------------- 0.49s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.07s /tmp/tmptdmnrt7v/tests/tests_precedence.yml:41 -------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Run role ---------------------------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_precedence.yml:14 -------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_precedence.yml:11 -------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:2 ------------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_precedence.yml:49 -------------------------------- 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.02s /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:39:19 +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.190713", "end": "2022-07-21 20:39:19.529696", "rc": 0, "start": "2022-07-21 20:39:19.338983" } 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:39:20 +0000 (0:00:00.755) 0:00:00.773 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.76s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_precedence.yml ************************************************* 1 plays in /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:2 Thursday 21 July 2022 20:39:20 +0000 (0:00:00.014) 0:00:00.788 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:11 Thursday 21 July 2022 20:39:21 +0000 (0:00:01.046) 0:00:01.834 ********* included: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml for /cache/centos-8.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:39:21 +0000 (0:00:00.026) 0:00:01.860 ********* included: /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml for /cache/centos-8.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:39:21 +0000 (0:00:00.024) 0:00:01.885 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:39:21 +0000 (0:00:00.019) 0:00:01.905 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:39:23 +0000 (0:00:02.127) 0:00:04.032 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.6lna7e2w", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:39:24 +0000 (0:00:00.472) 0:00:04.505 ********* ok: [/cache/centos-8.qcow2] => (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.6lna7e2w/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.6lna7e2w/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.008737", "end": "2022-07-21 20:39:23.668216", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:39:23.659479" } ok: [/cache/centos-8.qcow2] => (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.6lna7e2w/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.6lna7e2w/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.009210", "end": "2022-07-21 20:39:24.034858", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:39:24.025648" } TASK [Run role] **************************************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:14 Thursday 21 July 2022 20:39:25 +0000 (0:00:00.769) 0:00:05.275 ********* 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:39:25 +0000 (0:00:00.034) 0:00:05.309 ********* 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:39:25 +0000 (0:00:00.026) 0:00:05.335 ********* 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:39:25 +0000 (0:00:00.531) 0:00:05.867 ********* 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:39:25 +0000 (0:00:00.064) 0:00:05.931 ********* 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:39:27 +0000 (0:00:01.831) 0:00:07.763 ********* 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:39:27 +0000 (0:00:00.026) 0:00:07.790 ********* 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:39:27 +0000 (0:00:00.025) 0:00:07.816 ********* changed: [/cache/centos-8.qcow2] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.29097.2022-07-21@20:39:27~", "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-1658435967.7965844-62667-67658196898348/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the global configuration file] ********************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:36 Thursday 21 July 2022 20:39:28 +0000 (0:00:01.121) 0:00:08.937 ********* ok: [/cache/centos-8.qcow2] => { "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/tmppdxivynv/tests/ssh/tests_precedence.yml:41 Thursday 21 July 2022 20:39:29 +0000 (0:00:00.499) 0:00:09.437 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:49 Thursday 21 July 2022 20:39:29 +0000 (0:00:00.045) 0:00:09.483 ********* included: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml for /cache/centos-8.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:39:29 +0000 (0:00:00.024) 0:00:09.507 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.6lna7e2w//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.6lna7e2w//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.006276", "end": "2022-07-21 20:39:28.684251", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:39:28.677975" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.6lna7e2w//etc/ssh/ssh_config; then\n cp /tmp/ansible.6lna7e2w//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.005547", "end": "2022-07-21 20:39:29.055040", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:39:29.049493" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:39:30 +0000 (0:00:00.784) 0:00:10.291 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.6lna7e2w", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=17 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:39:30 +0000 (0:00:00.517) 0:00:10.809 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.13s /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.83s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.12s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:2 ----------------------------- Restore backed up files and remove what was not present ----------------- 0.78s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 -------------------------------- Backup files ------------------------------------------------------------ 0.77s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 -------------------------------- Enable HA repos --------------------------------------------------------- 0.76s /cache/centos-8_setup.yml:5 --------------------------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.53s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.50s /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:36 ---------------------------- Create a temporary directory for backup files --------------------------- 0.47s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 --------------------------------- 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_precedence.yml:41 ---------------------------- Run role ---------------------------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:14 ---------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 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 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:11 ---------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Setup ------------------------------------------------------------------- 0.02s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:2 --------------------------------- Restore configuration files --------------------------------------------- 0.02s /tmp/tmppdxivynv/tests/ssh/tests_precedence.yml:49 ----------------------------