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:34:08 +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.198578", "end": "2022-07-21 20:34:08.928285", "rc": 0, "start": "2022-07-21 20:34:08.729707" } 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:34:09 +0000 (0:00:00.763) 0:00:00.782 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.76s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_global_config_mode.yml ***************************************** 1 plays in /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml PLAY [Test we can write global config with given permissions] ****************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:2 Thursday 21 July 2022 20:34:09 +0000 (0:00:00.014) 0:00:00.797 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:11 Thursday 21 July 2022 20:34:10 +0000 (0:00:01.022) 0:00:01.820 ********* 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:34:10 +0000 (0:00:00.024) 0:00:01.844 ********* 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:34:10 +0000 (0:00:00.023) 0:00:01.868 ********* 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:34:10 +0000 (0:00:00.020) 0:00:01.888 ********* 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:34:12 +0000 (0:00:02.265) 0:00:04.153 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.1huix9kq", "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:34:13 +0000 (0:00:00.506) 0:00:04.659 ********* 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.1huix9kq/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.1huix9kq/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.010313", "end": "2022-07-21 20:34:13.216849", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:34:13.206536" } 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.1huix9kq/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.1huix9kq/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008596", "end": "2022-07-21 20:34:13.585602", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:34:13.577006" } TASK [Run role] **************************************************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:14 Thursday 21 July 2022 20:34:14 +0000 (0:00:00.778) 0:00:05.437 ********* 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:34:14 +0000 (0:00:00.031) 0:00:05.469 ********* 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:34:14 +0000 (0:00:00.026) 0:00:05.495 ********* 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:34:14 +0000 (0:00:00.522) 0:00:06.018 ********* 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:34:14 +0000 (0:00:00.059) 0:00:06.078 ********* 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:34:16 +0000 (0:00:01.859) 0:00:07.937 ********* 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:34:16 +0000 (0:00:00.024) 0:00:07.962 ********* 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:34:16 +0000 (0:00:00.024) 0:00:07.986 ********* changed: [/cache/centos-8.qcow2] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.20798.2022-07-21@20:34:17~", "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 2, "group": "daemon", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0600", "owner": "daemon", "secontext": "system_u:object_r:etc_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1658435656.8419676-57397-260190440492387/source", "state": "file", "uid": 2 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the global configuration file] ********************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:38 Thursday 21 July 2022 20:34:17 +0000 (0:00:01.139) 0:00:09.125 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/00-ansible.conf" } TASK [Stat the configuration file too] ***************************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:43 Thursday 21 July 2022 20:34:18 +0000 (0:00:00.517) 0:00:09.643 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1658435657.7975464, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "ctime": 1658435657.2595465, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 2, "gr_name": "daemon", "inode": 19232, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1658435656.8345463, "nlink": 1, "path": "/etc/ssh/ssh_config.d/00-ansible.conf", "pw_name": "daemon", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 62, "uid": 2, "version": "2994600019", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:49 Thursday 21 July 2022 20:34:18 +0000 (0:00:00.378) 0:00:10.022 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify the file has expected permissions] ******************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:55 Thursday 21 July 2022 20:34:18 +0000 (0:00:00.042) 0:00:10.064 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:63 Thursday 21 July 2022 20:34:18 +0000 (0:00:00.032) 0:00:10.097 ********* 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:34:18 +0000 (0:00:00.025) 0:00:10.122 ********* 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.1huix9kq//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.1huix9kq//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.007604", "end": "2022-07-21 20:34:18.687840", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:34:18.680236" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.1huix9kq//etc/ssh/ssh_config; then\n cp /tmp/ansible.1huix9kq//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.005778", "end": "2022-07-21 20:34:19.054809", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:34:19.049031" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:34:19 +0000 (0:00:00.778) 0:00:10.901 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.1huix9kq", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=19 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:34:20 +0000 (0:00:00.519) 0:00:11.420 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.27s /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.86s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.14s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:2 ------------------------- Restore backed up files and remove what was not present ----------------- 0.78s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 ------------------------------------ Backup files ------------------------------------------------------------ 0.78s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 ------------------------------------ Enable HA repos --------------------------------------------------------- 0.76s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.52s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 ----------------------------------- Download the global configuration file ---------------------------------- 0.52s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:38 ------------------------ Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:5 ------------------------------------- Stat the configuration file too ----------------------------------------- 0.38s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:43 ------------------------ 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.04s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:49 ------------------------ Verify the file has expected permissions -------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:55 ------------------------ Run role ---------------------------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:14 ------------------------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmptdmnrt7v/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:63 ------------------------ Backup configuration files ---------------------------------------------- 0.02s /tmp/tmptdmnrt7v/tests/tests_global_config_mode.yml:11 ------------------------ 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 --------- 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:38:10 +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.193910", "end": "2022-07-21 20:38:10.584656", "rc": 0, "start": "2022-07-21 20:38:10.390746" } 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:38:11 +0000 (0:00:00.788) 0:00:00.807 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_global_config_mode.yml ***************************************** 1 plays in /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml PLAY [Test we can write global config with given permissions] ****************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:2 Thursday 21 July 2022 20:38:11 +0000 (0:00:00.013) 0:00:00.821 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:11 Thursday 21 July 2022 20:38:12 +0000 (0:00:01.025) 0:00:01.846 ********* 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:38:12 +0000 (0:00:00.027) 0:00:01.874 ********* 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:38:12 +0000 (0:00:00.025) 0:00:01.899 ********* 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:38:12 +0000 (0:00:00.020) 0:00:01.920 ********* 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:38:15 +0000 (0:00:02.245) 0:00:04.166 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.zqqm_mcz", "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:38:15 +0000 (0:00:00.477) 0:00:04.644 ********* 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.zqqm_mcz/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.zqqm_mcz/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.007615", "end": "2022-07-21 20:38:14.821241", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:38:14.813626" } 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.zqqm_mcz/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.zqqm_mcz/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007391", "end": "2022-07-21 20:38:15.177611", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:38:15.170220" } TASK [Run role] **************************************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:14 Thursday 21 July 2022 20:38:16 +0000 (0:00:00.750) 0:00:05.394 ********* 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:38:16 +0000 (0:00:00.037) 0:00:05.431 ********* 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:38:16 +0000 (0:00:00.029) 0:00:05.460 ********* 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:38:16 +0000 (0:00:00.536) 0:00:05.997 ********* 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:38:16 +0000 (0:00:00.061) 0:00:06.059 ********* 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:38:18 +0000 (0:00:01.855) 0:00:07.914 ********* 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:38:18 +0000 (0:00:00.027) 0:00:07.941 ********* 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:38:18 +0000 (0:00:00.024) 0:00:07.966 ********* changed: [/cache/centos-8.qcow2] => { "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.20796.2022-07-21@20:38:18~", "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 2, "group": "daemon", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0600", "owner": "daemon", "secontext": "system_u:object_r:etc_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1658435898.9612026-61114-34265096516534/source", "state": "file", "uid": 2 } META: role_complete for /cache/centos-8.qcow2 TASK [Download the global configuration file] ********************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:38 Thursday 21 July 2022 20:38:20 +0000 (0:00:01.162) 0:00:09.129 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/00-ansible.conf" } TASK [Stat the configuration file too] ***************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:43 Thursday 21 July 2022 20:38:20 +0000 (0:00:00.497) 0:00:09.627 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1658435899.409017, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "ctime": 1658435898.903017, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 2, "gr_name": "daemon", "inode": 218425, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1658435898.4610171, "nlink": 1, "path": "/etc/ssh/ssh_config.d/00-ansible.conf", "pw_name": "daemon", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 62, "uid": 2, "version": "3498470028", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:48 Thursday 21 July 2022 20:38:20 +0000 (0:00:00.437) 0:00:10.064 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify the file has expected permissions] ******************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:54 Thursday 21 July 2022 20:38:21 +0000 (0:00:00.058) 0:00:10.123 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:62 Thursday 21 July 2022 20:38:21 +0000 (0:00:00.074) 0:00:10.197 ********* 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:38:21 +0000 (0:00:00.026) 0:00:10.224 ********* 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.zqqm_mcz//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.zqqm_mcz//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.008396", "end": "2022-07-21 20:38:20.403056", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:38:20.394660" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.zqqm_mcz//etc/ssh/ssh_config; then\n cp /tmp/ansible.zqqm_mcz//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.005957", "end": "2022-07-21 20:38:20.759554", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:38:20.753597" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:38:21 +0000 (0:00:00.753) 0:00:10.977 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.zqqm_mcz", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=19 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:38:22 +0000 (0:00:00.518) 0:00:11.496 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.25s /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.86s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.16s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:2 --------------------- Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- Restore backed up files and remove what was not present ----------------- 0.75s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 -------------------------------- Backup files ------------------------------------------------------------ 0.75s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.54s /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_global_config_mode.yml:38 -------------------- Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 --------------------------------- Stat the configuration file too ----------------------------------------- 0.44s /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:43 -------------------- Verify the file has expected permissions -------------------------------- 0.07s /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:54 -------------------- 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.06s /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:48 -------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:14 -------------------- 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_global_config_mode.yml:11 -------------------- 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 Restore configuration files --------------------------------------------- 0.03s /tmp/tmppdxivynv/tests/ssh/tests_global_config_mode.yml:62 --------------------