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:33 +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.218318", "end": "2022-07-21 20:34:33.219280", "rc": 0, "start": "2022-07-21 20:34:33.000962" } 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:33 +0000 (0:00:00.815) 0:00:00.833 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml PLAY [Test forced creation of the configuration snippet in drop in directory] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:34:33 +0000 (0:00:00.020) 0:00:00.854 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:34:34 +0000 (0:00:01.040) 0:00:01.895 ********* 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:34 +0000 (0:00:00.024) 0:00:01.920 ********* 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:34 +0000 (0:00:00.023) 0:00:01.943 ********* 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:34 +0000 (0:00:00.022) 0:00:01.965 ********* 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:37 +0000 (0:00:02.370) 0:00:04.336 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.ho4iocaq", "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:37 +0000 (0:00:00.477) 0:00:04.813 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/99-last.conf; then\n mkdir -p /tmp/ansible.ho4iocaq/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.ho4iocaq/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.003266", "end": "2022-07-21 20:34:37.592738", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:34:37.589472" } 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.ho4iocaq/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.ho4iocaq/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007666", "end": "2022-07-21 20:34:37.940833", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:34:37.933167" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:34:38 +0000 (0:00:00.751) 0:00:05.565 ********* ok: [/cache/centos-8.qcow2] META: ran handlers 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:39 +0000 (0:00:00.766) 0:00:06.331 ********* 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:39 +0000 (0:00:00.026) 0:00:06.357 ********* 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:39 +0000 (0:00:00.522) 0:00:06.880 ********* 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:39 +0000 (0:00:00.062) 0:00:06.942 ********* 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:41 +0000 (0:00:01.778) 0:00:08.720 ********* 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:41 +0000 (0:00:00.027) 0:00:08.748 ********* 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:41 +0000 (0:00:00.025) 0:00:08.773 ********* changed: [/cache/centos-8.qcow2] => { "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config.d/99-last.conf", "gid": 0, "group": "root", "md5sum": "df1b5553fea0fc8007bd9d80d983bbbe", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 98, "src": "/root/.ansible/tmp/ansible-tmp-1658435681.8696315-57954-230555531225069/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:34:42 +0000 (0:00:01.123) 0:00:09.896 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:34:43 +0000 (0:00:00.767) 0:00:10.664 ********* META: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 skipping: [/cache/centos-8.qcow2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/centos-8.qcow2" } MSG: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 TASK [Download the included configuration file] ******************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:40 Thursday 21 July 2022 20:34:43 +0000 (0:00:00.029) 0:00:10.694 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkdTU0FQSUF1dGhlbnRpY2F0aW9uIG5vCkhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/99-last.conf" } TASK [Stat the configuration file too] ***************************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:45 Thursday 21 July 2022 20:34:44 +0000 (0:00:00.480) 0:00:11.175 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1658435683.5665464, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "ctime": 1658435682.2605464, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19231, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1658435681.8565464, "nlink": 1, "path": "/etc/ssh/ssh_config.d/99-last.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 98, "uid": 0, "version": "163748900", "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_drop_in_role.yml:51 Thursday 21 July 2022 20:34:44 +0000 (0:00:00.371) 0:00:11.546 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Download the main configuration file too] ******************************** task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:62 Thursday 21 July 2022 20:34:44 +0000 (0:00:00.072) 0:00:11.618 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwkkT3BlbkJTRDogc3NoX2NvbmZpZyx2IDEuMzQgMjAxOS8w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AgKi5jb25mICBmaWxlIHVuZGVyCiMgIC9ldGMvc3NoL3NzaF9jb25maWcuZC8gIHdoaWNoIHdpbGwgYmUgYXV0b21hdGljYWxseSBpbmNsdWRlZCBiZWxvdwpJbmNsdWRlIC9ldGMvc3NoL3NzaF9jb25maWcuZC8qLmNvbmYK", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are NOT in the global configuration file] ************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:67 Thursday 21 July 2022 20:34:45 +0000 (0:00:00.386) 0:00:12.004 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify the file has default sensible permissions] ************************ task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:76 Thursday 21 July 2022 20:34:45 +0000 (0:00:00.032) 0:00:12.037 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:84 Thursday 21 July 2022 20:34:45 +0000 (0:00:00.049) 0:00:12.087 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:90 Thursday 21 July 2022 20:34:46 +0000 (0:00:01.814) 0:00:13.901 ********* 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:46 +0000 (0:00:00.026) 0:00:13.927 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.ho4iocaq//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.ho4iocaq//etc/ssh/ssh_config.d/99-last.conf $(dirname /etc/ssh/ssh_config.d/99-last.conf)\nelif test -f /etc/ssh/ssh_config.d/99-last.conf; then\n rm /etc/ssh/ssh_config.d/99-last.conf\nfi\n", "delta": "0:00:00.004162", "end": "2022-07-21 20:34:46.728014", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:34:46.723852" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.ho4iocaq//etc/ssh/ssh_config; then\n cp /tmp/ansible.ho4iocaq//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.005904", "end": "2022-07-21 20:34:47.081086", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:34:47.075182" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:34:47 +0000 (0:00:00.764) 0:00:14.692 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.ho4iocaq", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=24 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:34:48 +0000 (0:00:00.477) 0:00:15.169 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.37s /tmp/tmptdmnrt7v/tests/tasks/setup.yml:7 -------------------------------------- Gathering Facts --------------------------------------------------------- 1.81s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:84 ----------------------- 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_global_drop_in_role.yml:2 ------------------------ Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:27 ----------------------- Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:14 ----------------------- Restore backed up files and remove what was not present ----------------- 0.76s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:2 ------------------------------------ Backup files ------------------------------------------------------------ 0.75s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:13 ------------------------------------ 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 ------ Download the included configuration file -------------------------------- 0.48s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:40 ----------------------- Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmptdmnrt7v/tests/tasks/backup.yml:5 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.48s /tmp/tmptdmnrt7v/tests/tasks/restore.yml:15 ----------------------------------- Download the main configuration file too -------------------------------- 0.39s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:62 ----------------------- Stat the configuration file too ----------------------------------------- 0.37s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:45 ----------------------- Verify the options are in the file -------------------------------------- 0.07s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:51 ----------------------- 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 file has default sensible permissions ------------------------ 0.05s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:76 ----------------------- Verify the options are NOT in the global configuration file ------------- 0.03s /tmp/tmptdmnrt7v/tests/tests_global_drop_in_role.yml:67 ----------------------- 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:35 +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.196772", "end": "2022-07-21 20:38:34.822285", "rc": 0, "start": "2022-07-21 20:38:34.625513" } 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:35 +0000 (0:00:00.786) 0:00:00.806 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml PLAY [Test forced creation of the configuration snippet in drop in directory] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:38:35 +0000 (0:00:00.024) 0:00:00.830 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:38:37 +0000 (0:00:01.023) 0:00:01.853 ********* 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:37 +0000 (0:00:00.026) 0:00:01.880 ********* 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:37 +0000 (0:00:00.024) 0:00:01.905 ********* 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:37 +0000 (0:00:00.020) 0:00:01.925 ********* 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:39 +0000 (0:00:02.268) 0:00:04.194 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.klrb3gco", "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:39 +0000 (0:00:00.484) 0:00:04.679 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/99-last.conf; then\n mkdir -p /tmp/ansible.klrb3gco/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.klrb3gco/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.002921", "end": "2022-07-21 20:38:39.075209", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:38:39.072288" } 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.klrb3gco/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.klrb3gco/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007217", "end": "2022-07-21 20:38:39.404766", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:38:39.397549" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:38:40 +0000 (0:00:00.715) 0:00:05.395 ********* ok: [/cache/centos-8.qcow2] META: ran handlers 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:41 +0000 (0:00:00.763) 0:00:06.159 ********* 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:41 +0000 (0:00:00.027) 0:00:06.186 ********* 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:41 +0000 (0:00:00.498) 0:00:06.685 ********* 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:41 +0000 (0:00:00.061) 0:00:06.746 ********* 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:43 +0000 (0:00:01.773) 0:00:08.520 ********* 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:43 +0000 (0:00:00.028) 0:00:08.548 ********* 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:43 +0000 (0:00:00.024) 0:00:08.573 ********* changed: [/cache/centos-8.qcow2] => { "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config.d/99-last.conf", "gid": 0, "group": "root", "md5sum": "df1b5553fea0fc8007bd9d80d983bbbe", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 98, "src": "/root/.ansible/tmp/ansible-tmp-1658435923.8093143-61671-234977909483815/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-8.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:38:44 +0000 (0:00:01.088) 0:00:09.661 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:38:45 +0000 (0:00:00.755) 0:00:10.417 ********* META: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 skipping: [/cache/centos-8.qcow2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/centos-8.qcow2" } MSG: end_host conditional evaluated to false, continuing execution for /cache/centos-8.qcow2 TASK [Download the included configuration file] ******************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:38 Thursday 21 July 2022 20:38:45 +0000 (0:00:00.029) 0:00:10.446 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkdTU0FQSUF1dGhlbnRpY2F0aW9uIG5vCkhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/99-last.conf" } TASK [Stat the configuration file too] ***************************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:43 Thursday 21 July 2022 20:38:46 +0000 (0:00:00.482) 0:00:10.928 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1658435924.9540172, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "ctime": 1658435923.6550171, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 218426, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1658435923.266017, "nlink": 1, "path": "/etc/ssh/ssh_config.d/99-last.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 98, "uid": 0, "version": "1423513820", "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_drop_in_role.yml:48 Thursday 21 July 2022 20:38:46 +0000 (0:00:00.418) 0:00:11.346 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Download the main configuration file too] ******************************** task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:59 Thursday 21 July 2022 20:38:46 +0000 (0:00:00.038) 0:00:11.384 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "content": "IwkkT3BlbkJTRDogc3NoX2NvbmZpZyx2IDEuMzQgMjAxOS8wMi8wNCAwMjozOTo0MiBkdHVja2VyIEV4cCAkCgojIFRoaXMgaXMgdGhlIHNzaCBjbGllbnQgc3lzdGVtLXdpZGUgY29uZmlndXJhdGlvbiBmaWxlLiAgU2VlCiMgc3NoX2NvbmZpZyg1KSBmb3IgbW9yZSBpbmZvcm1hdGlvbi4gIFRoaXMgZmlsZSBwcm92aWRlcyBkZWZhdWx0cyBmb3IKIyB1c2VycywgYW5kIHRoZSB2YWx1ZXMgY2FuIGJlIGNoYW5nZWQgaW4gcGVyLXVzZXIgY29uZmlndXJhdGlvbiBmaWxlcwojIG9yIG9uIHRoZSBjb21tYW5kIGxpbmUuCgojIENvbmZpZ3VyYXRpb24gZGF0YSBpcyBwYXJzZWQgYXMgZm9sbG93czoKIyAgMS4gY29tbWFuZCBsaW5lIG9wdGlvbnMKIyAgMi4gdXNlci1zcGVjaWZpYyBmaWxlCiMgIDMuIHN5c3RlbS13aWRlIGZpbGUKIyBBbnkgY29uZmlndXJhdGlvbiB2YWx1ZSBpcyBvbmx5IGNoYW5nZWQgdGhlIGZpcnN0IHRpbWUgaXQgaXMgc2V0LgojIFRodXMsIGhvc3Qtc3BlY2lmaWMgZGVmaW5pdGlvbnMgc2hvdWxkIGJlIGF0IHRoZSBiZWdpbm5pbmcgb2YgdGhlCiMgY29uZmlndXJhdGlvbiBmaWxlLCBhbmQgZGVmYXVsdHMgYXQgdGhlIGVuZC4KCiMgU2l0ZS13aWRlIGRlZmF1bHRzIGZvciBzb21lIGNvbW1vbmx5IHVzZWQgb3B0aW9ucy4gIEZvciBhIGNvbXByZWhlbnNpdmUKIyBsaXN0IG9mIGF2YWlsYWJsZSBvcHRpb25zLCB0aGVp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xpbWl0IDFHIDFoCiMKIyBUaGlzIHN5c3RlbSBpcyBmb2xsb3dpbmcgc3lzdGVtLXdpZGUgY3J5cHRvIHBvbGljeS4KIyBUbyBtb2RpZnkgdGhlIHN5c3RlbS13aWRlIHNzaCBjb25maWd1cmF0aW9uLCBjcmVhdGUgYSAgKi5jb25mICBmaWxlIHVuZGVyCiMgIC9ldGMvc3NoL3NzaF9jb25maWcuZC8gIHdoaWNoIHdpbGwgYmUgYXV0b21hdGljYWxseSBpbmNsdWRlZCBiZWxvdwpJbmNsdWRlIC9ldGMvc3NoL3NzaF9jb25maWcuZC8qLmNvbmYK", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are NOT in the global configuration file] ************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:64 Thursday 21 July 2022 20:38:46 +0000 (0:00:00.362) 0:00:11.747 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify the file has default sensible permissions] ************************ task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:73 Thursday 21 July 2022 20:38:46 +0000 (0:00:00.064) 0:00:11.811 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:81 Thursday 21 July 2022 20:38:47 +0000 (0:00:00.086) 0:00:11.898 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:87 Thursday 21 July 2022 20:38:47 +0000 (0:00:00.765) 0:00:12.663 ********* 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:47 +0000 (0:00:00.024) 0:00:12.687 ********* ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.klrb3gco//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.klrb3gco//etc/ssh/ssh_config.d/99-last.conf $(dirname /etc/ssh/ssh_config.d/99-last.conf)\nelif test -f /etc/ssh/ssh_config.d/99-last.conf; then\n rm /etc/ssh/ssh_config.d/99-last.conf\nfi\n", "delta": "0:00:00.003664", "end": "2022-07-21 20:38:47.101741", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:38:47.098077" } ok: [/cache/centos-8.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.klrb3gco//etc/ssh/ssh_config; then\n cp /tmp/ansible.klrb3gco//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.005820", "end": "2022-07-21 20:38:47.446377", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:38:47.440557" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:38:48 +0000 (0:00:00.736) 0:00:13.424 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "path": "/tmp/ansible.klrb3gco", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=24 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:38:49 +0000 (0:00:00.467) 0:00:13.891 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.27s /tmp/tmppdxivynv/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.77s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.09s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:2 -------------------- Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:81 ------------------- Gathering Facts --------------------------------------------------------- 0.76s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:14 ------------------- Gathering Facts --------------------------------------------------------- 0.76s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:27 ------------------- Restore backed up files and remove what was not present ----------------- 0.74s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:2 -------------------------------- Backup files ------------------------------------------------------------ 0.72s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:13 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.50s /tmp/tmpppg9msr1/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.48s /tmp/tmppdxivynv/tests/ssh/tasks/backup.yml:5 --------------------------------- Download the included configuration file -------------------------------- 0.48s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:38 ------------------- Remove temporary directory for backup files ----------------------------- 0.47s /tmp/tmppdxivynv/tests/ssh/tasks/restore.yml:15 ------------------------------- Stat the configuration file too ----------------------------------------- 0.42s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:43 ------------------- Download the main configuration file too -------------------------------- 0.36s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:59 ------------------- Verify the file has default sensible permissions ------------------------ 0.09s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:73 ------------------- Verify the options are NOT in the global configuration file ------------- 0.06s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:64 ------------------- 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.04s /tmp/tmppdxivynv/tests/ssh/tests_global_drop_in_role.yml:48 -------------------