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_precedence.yml ************************************************* 1 plays in /tmp/tmptgthu93e/tests/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_precedence.yml:2 Thursday 21 July 2022 20:29:59 +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_precedence.yml:11 Thursday 21 July 2022 20:30:00 +0000 (0:00:00.979) 0:00:00.992 ********* 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:30:00 +0000 (0:00:00.029) 0:00:01.022 ********* 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:30:00 +0000 (0:00:00.028) 0:00:01.051 ********* 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:30:00 +0000 (0:00:00.024) 0:00:01.075 ********* 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:30:01 +0000 (0:00:00.612) 0:00:01.687 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.tcMgz7", "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:30:01 +0000 (0:00:00.367) 0:00:02.054 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.tcMgz7/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.tcMgz7/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003943", "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:30:00.845592", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:30:00.841649" } 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.tcMgz7/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.tcMgz7/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008804", "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:30:01.137589", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:30:01.128785" } TASK [Run role] **************************************************************** task path: /tmp/tmptgthu93e/tests/tests_precedence.yml:14 Thursday 21 July 2022 20:30:02 +0000 (0:00:00.679) 0:00:02.734 ********* 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:30:02 +0000 (0:00:00.035) 0:00:02.769 ********* 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:30:02 +0000 (0:00:00.028) 0:00:02.798 ********* 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:30:02 +0000 (0:00:00.373) 0:00:03.171 ********* 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:30:02 +0000 (0:00:00.055) 0:00:03.227 ********* 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:30:03 +0000 (0:00:00.466) 0:00:03.693 ********* 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:30:03 +0000 (0:00:00.026) 0:00:03.720 ********* 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:30:03 +0000 (0:00:00.026) 0:00:03.746 ********* changed: [/cache/centos-6.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.6502.2022-07-21@20:30:03~", "changed": true, "checksum": "69f5f23d3e32c20f369893e20ca8a2c4e0daf572", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "8e77ca764137cdd0aecefa0d8d5f1a23", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 318, "src": "/root/.ansible/tmp/ansible-tmp-1658435403.2759564-52830-93434838772907/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-6.qcow2c.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmptgthu93e/tests/tests_precedence.yml:36 Thursday 21 July 2022 20:30:04 +0000 (0:00:00.984) 0:00:04.731 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMKSG9zdCAqCiAgRm9yd2FyZFgxMVRydXN0ZWQgeWVzCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCiAgU2VuZEVudiBMQU5HIExDX0NUWVBFIExDX05VTUVSSUMgTENfVElNRSBMQ19DT0xMQVRFIExDX01PTkVUQVJZIExDX01FU1NBR0VTClNlbmRFbnYgTENfUEFQRVIgTENfTkFNRSBMQ19BRERSRVNTIExDX1RFTEVQSE9ORSBMQ19NRUFTVVJFTUVOVApTZW5kRW52IExDX0lERU5USUZJQ0FUSU9OIExDX0FMTCBMQU5HVUFHRQpTZW5kRW52IFhNT0RJRklFUlMK", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmptgthu93e/tests/tests_precedence.yml:41 Thursday 21 July 2022 20:30:04 +0000 (0:00:00.402) 0:00:05.133 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmptgthu93e/tests/tests_precedence.yml:49 Thursday 21 July 2022 20:30:04 +0000 (0:00:00.049) 0:00:05.183 ********* 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:30:04 +0000 (0:00:00.039) 0:00:05.222 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.tcMgz7//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.tcMgz7//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.003907", "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:30:03.934771", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:30:03.930864" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.tcMgz7//etc/ssh/ssh_config; then\n cp /tmp/ansible.tcMgz7//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.006043", "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:30:04.197761", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:30:04.191718" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:30:05 +0000 (0:00:00.571) 0:00:05.794 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.tcMgz7", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:30:05 +0000 (0:00:00.433) 0:00:06.228 ********* =============================================================================== linux-system-roles.ssh : Generate the configuration file ---------------- 0.98s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmptgthu93e/tests/tests_precedence.yml:2 --------------------------------- Backup files ------------------------------------------------------------ 0.68s /tmp/tmptgthu93e/tests/tasks/backup.yml:13 ------------------------------------ Make sure openssh is installed before creating backup ------------------- 0.61s /tmp/tmptgthu93e/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.57s /tmp/tmptgthu93e/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.47s /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 ----------------------------------- Download the global configuration file ---------------------------------- 0.40s /tmp/tmptgthu93e/tests/tests_precedence.yml:36 -------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.37s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.37s /tmp/tmptgthu93e/tests/tasks/backup.yml:5 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the options are in the file -------------------------------------- 0.05s /tmp/tmptgthu93e/tests/tests_precedence.yml:41 -------------------------------- Restore configuration files --------------------------------------------- 0.04s /tmp/tmptgthu93e/tests/tests_precedence.yml:49 -------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmptgthu93e/tests/tests_precedence.yml:14 -------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tests_precedence.yml:11 -------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tasks/backup.yml:2 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- 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 --------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmptgthu93e/tests/tasks/setup.yml:2 -------------------------------------- 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_precedence.yml ************************************************* 1 plays in /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:2 Thursday 21 July 2022 20:31:35 +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_precedence.yml:11 Thursday 21 July 2022 20:31:36 +0000 (0:00:00.998) 0:00:01.011 ********* 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:36 +0000 (0:00:00.029) 0:00:01.040 ********* 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:36 +0000 (0:00:00.029) 0:00:01.069 ********* 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:36 +0000 (0:00:00.047) 0:00:01.116 ********* 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:37 +0000 (0:00:00.584) 0:00:01.700 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.D5Pbn7", "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:37 +0000 (0:00:00.366) 0:00:02.067 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.D5Pbn7/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.D5Pbn7/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003732", "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:37.619151", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:31:37.615419" } 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.D5Pbn7/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.D5Pbn7/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008122", "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:37.906187", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:31:37.898065" } TASK [Run role] **************************************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:14 Thursday 21 July 2022 20:31:38 +0000 (0:00:00.670) 0:00:02.737 ********* 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:38 +0000 (0:00:00.040) 0:00:02.778 ********* 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:38 +0000 (0:00:00.031) 0:00:02.810 ********* 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:38 +0000 (0:00:00.379) 0:00:03.189 ********* 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:38 +0000 (0:00:00.056) 0:00:03.246 ********* 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:39 +0000 (0:00:00.464) 0:00:03.711 ********* 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:39 +0000 (0:00:00.024) 0:00:03.736 ********* 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:39 +0000 (0:00:00.023) 0:00:03.760 ********* changed: [/cache/centos-6.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.6505.2022-07-21@20:31:39~", "changed": true, "checksum": "69f5f23d3e32c20f369893e20ca8a2c4e0daf572", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "8e77ca764137cdd0aecefa0d8d5f1a23", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 318, "src": "/root/.ansible/tmp/ansible-tmp-1658435499.3261487-55441-162195026115835/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-6.qcow2c.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:36 Thursday 21 July 2022 20:31:40 +0000 (0:00:00.983) 0:00:04.743 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMKSG9zdCAqCiAgRm9yd2FyZFgxMVRydXN0ZWQgeWVzCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCiAgU2VuZEVudiBMQU5HIExDX0NUWVBFIExDX05VTUVSSUMgTENfVElNRSBMQ19DT0xMQVRFIExDX01PTkVUQVJZIExDX01FU1NBR0VTClNlbmRFbnYgTENfUEFQRVIgTENfTkFNRSBMQ19BRERSRVNTIExDX1RFTEVQSE9ORSBMQ19NRUFTVVJFTUVOVApTZW5kRW52IExDX0lERU5USUZJQ0FUSU9OIExDX0FMTCBMQU5HVUFHRQpTZW5kRW52IFhNT0RJRklFUlMK", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:41 Thursday 21 July 2022 20:31:40 +0000 (0:00:00.406) 0:00:05.150 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:49 Thursday 21 July 2022 20:31:40 +0000 (0:00:00.050) 0:00:05.200 ********* 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:40 +0000 (0:00:00.037) 0:00:05.237 ********* ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.D5Pbn7//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.D5Pbn7//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.004051", "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:40.717050", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:31:40.712999" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.D5Pbn7//etc/ssh/ssh_config; then\n cp /tmp/ansible.D5Pbn7//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.007090", "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:40.979357", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:31:40.972267" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:31:41 +0000 (0:00:00.579) 0:00:05.817 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.D5Pbn7", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:31:41 +0000 (0:00:00.445) 0:00:06.262 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:2 ----------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.98s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.67s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:13 -------------------------------- Make sure openssh is installed before creating backup ------------------- 0.58s /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.58s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.46s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.45s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.41s /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:36 ---------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.38s /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 Verify the options are in the file -------------------------------------- 0.05s /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:41 ---------------------------- Ensure facts used by test ----------------------------------------------- 0.05s /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:2 ---------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:14 ---------------------------- Restore configuration files --------------------------------------------- 0.04s /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:49 ---------------------------- 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 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_precedence.yml:11 ---------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.02s /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.02s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17