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/tmpharb6qhc executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmptgthu93e/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/tmptgthu93e/tests/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:29:32 +0000 (0:00:00.013) 0:00:00.013 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:29:33 +0000 (0:00:01.031) 0:00:01.045 ********* included: /tmp/tmptgthu93e/tests/tasks/backup.yml for /cache/centos-6.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:29:33 +0000 (0:00:00.028) 0:00:01.074 ********* included: /tmp/tmptgthu93e/tests/tasks/setup.yml for /cache/centos-6.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmptgthu93e/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:29:33 +0000 (0:00:00.049) 0:00:01.123 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmptgthu93e/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:29:33 +0000 (0:00:00.024) 0:00:01.148 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:29:33 +0000 (0:00:00.597) 0:00:01.745 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.2BTDHX", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:29:34 +0000 (0:00:00.361) 0:00:02.106 ********* ok: [/cache/centos-6.qcow2c.snap] => (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.2BTDHX/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.2BTDHX/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.003808", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:33.654134", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:29:33.650326" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config; then\n mkdir -p /tmp/ansible.2BTDHX/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.2BTDHX/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008525", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:33.913360", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:29:33.904835" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:29:34 +0000 (0:00:00.695) 0:00:02.802 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:29:35 +0000 (0:00:00.686) 0:00:03.489 ********* included: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-6.qcow2c.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:29:35 +0000 (0:00:00.029) 0:00:03.519 ********* ok: [/cache/centos-6.qcow2c.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:29:36 +0000 (0:00:00.385) 0:00:03.905 ********* skipping: [/cache/centos-6.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } }, "__ssh_supports_validate": false }, "ansible_included_var_files": [ "/tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/vars/CentOS_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.10.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:29:36 +0000 (0:00:00.055) 0:00:03.960 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-124.el6_10.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:29:36 +0000 (0:00:00.482) 0:00:04.443 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:29:36 +0000 (0:00:00.027) 0:00:04.470 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:29:36 +0000 (0:00:00.025) 0:00:04.496 ********* changed: [/cache/centos-6.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.4621.2022-07-21@20:29:36~", "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config", "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-1658435376.7593284-51959-252792409315159/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-6.qcow2c.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:29:37 +0000 (0:00:01.000) 0:00:05.496 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:29:38 +0000 (0:00:00.729) 0:00:06.225 ********* META: ending play for /cache/centos-6.qcow2c.snap PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:84 Thursday 21 July 2022 20:29:38 +0000 (0:00:00.071) 0:00:06.297 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:90 Thursday 21 July 2022 20:29:39 +0000 (0:00:00.685) 0:00:06.982 ********* included: /tmp/tmptgthu93e/tests/tasks/restore.yml for /cache/centos-6.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:29:39 +0000 (0:00:00.030) 0:00:07.013 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.2BTDHX//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.2BTDHX//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.003869", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:38.437024", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:29:38.433155" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.2BTDHX//etc/ssh/ssh_config; then\n cp /tmp/ansible.2BTDHX//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.007180", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:38.702483", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:29:38.695303" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:29:39 +0000 (0:00:00.559) 0:00:07.573 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.2BTDHX", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:29:40 +0000 (0:00:00.432) 0:00:08.005 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:2 ------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 1.00s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 0.73s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:27 ----------------------- Backup files ------------------------------------------------------------ 0.70s /tmp/tmptgthu93e/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:14 ----------------------- Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:84 ----------------------- Make sure openssh is installed before creating backup ------------------- 0.60s /tmp/tmptgthu93e/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.56s /tmp/tmptgthu93e/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.48s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Remove temporary directory for backup files ----------------------------- 0.43s /tmp/tmptgthu93e/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.39s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.36s /tmp/tmptgthu93e/tests/tasks/backup.yml:5 ------------------------------------- Skip if the system does not support drop in directory ------------------- 0.07s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:29 ----------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Setup ------------------------------------------------------------------- 0.05s /tmp/tmptgthu93e/tests/tasks/backup.yml:2 ------------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:90 ----------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tests_global_drop_in_role.yml:11 ----------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmptgthu93e/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.03s /tmp/tmptgthu93e/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/tmpharb6qhc executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmpyajtit7a/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/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:31:07 +0000 (0:00:00.012) 0:00:00.012 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:31:08 +0000 (0:00:01.006) 0:00:01.019 ********* included: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml for /cache/centos-6.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:31:09 +0000 (0:00:00.027) 0:00:01.047 ********* included: /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml for /cache/centos-6.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:31:09 +0000 (0:00:00.043) 0:00:01.090 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:31:09 +0000 (0:00:00.023) 0:00:01.114 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:31:09 +0000 (0:00:00.593) 0:00:01.707 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.kqmtWR", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:31:10 +0000 (0:00:00.365) 0:00:02.073 ********* ok: [/cache/centos-6.qcow2c.snap] => (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.kqmtWR/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.kqmtWR/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.003883", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:31:10.148756", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:31:10.144873" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config; then\n mkdir -p /tmp/ansible.kqmtWR/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.kqmtWR/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.010065", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:31:10.426196", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:31:10.416131" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:31:10 +0000 (0:00:00.735) 0:00:02.808 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:31:11 +0000 (0:00:00.710) 0:00:03.519 ********* included: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-6.qcow2c.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:31:11 +0000 (0:00:00.033) 0:00:03.552 ********* ok: [/cache/centos-6.qcow2c.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:31:11 +0000 (0:00:00.372) 0:00:03.925 ********* skipping: [/cache/centos-6.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } }, "__ssh_supports_validate": false }, "ansible_included_var_files": [ "/tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.10.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:31:11 +0000 (0:00:00.063) 0:00:03.989 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-124.el6_10.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:31:12 +0000 (0:00:00.477) 0:00:04.467 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:31:12 +0000 (0:00:00.027) 0:00:04.494 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:31:12 +0000 (0:00:00.026) 0:00:04.521 ********* changed: [/cache/centos-6.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.4624.2022-07-21@20:31:13~", "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config", "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-1658435472.5690877-54570-239565590224315/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-6.qcow2c.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:31:13 +0000 (0:00:01.000) 0:00:05.522 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:31:14 +0000 (0:00:00.747) 0:00:06.270 ********* META: ending play for /cache/centos-6.qcow2c.snap PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:81 Thursday 21 July 2022 20:31:14 +0000 (0:00:00.063) 0:00:06.333 ********* ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:87 Thursday 21 July 2022 20:31:15 +0000 (0:00:00.687) 0:00:07.021 ********* included: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml for /cache/centos-6.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:31:15 +0000 (0:00:00.030) 0:00:07.052 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.kqmtWR//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.kqmtWR//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.003785", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:31:14.985657", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:31:14.981872" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.kqmtWR//etc/ssh/ssh_config; then\n cp /tmp/ansible.kqmtWR//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.006474", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:31:15.249606", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:31:15.243132" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:31:15 +0000 (0:00:00.554) 0:00:07.606 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.kqmtWR", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:31:16 +0000 (0:00:00.436) 0:00:08.042 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:2 -------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.00s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.75s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:27 ------------------- Backup files ------------------------------------------------------------ 0.74s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.71s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:14 ------------------- Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:81 ------------------- Make sure openssh is installed before creating backup ------------------- 0.59s /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.55s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.48s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.44s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 ------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.37s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.37s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:5 --------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Skip if the system does not support drop in directory ------------------- 0.06s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:29 ------------------- Setup ------------------------------------------------------------------- 0.04s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:87 ------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_global_drop_in_role.yml:11 ------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17