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/tmp6e14t4bh 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/tmpsqnv7rd5/tests/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:2 Thursday 21 July 2022 20:27:28 +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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:11 Thursday 21 July 2022 20:27:29 +0000 (0:00:00.955) 0:00:00.967 ********* included: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml for /cache/rhel-6.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:27:29 +0000 (0:00:00.030) 0:00:00.998 ********* included: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml for /cache/rhel-6.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:27:29 +0000 (0:00:00.030) 0:00:01.028 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:27:29 +0000 (0:00:00.024) 0:00:01.052 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:27:29 +0000 (0:00:00.624) 0:00:01.677 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.x3DOsI", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:27:30 +0000 (0:00:00.350) 0:00:02.028 ********* ok: [/cache/rhel-6.qcow2.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.x3DOsI/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.x3DOsI/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003457", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:27:30.140243", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:27:30.136786" } ok: [/cache/rhel-6.qcow2.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.x3DOsI/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.x3DOsI/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007338", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:27:30.428308", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:27:30.420970" } TASK [Run role] **************************************************************** task path: /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:14 Thursday 21 July 2022 20:27:30 +0000 (0:00:00.655) 0:00:02.683 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:27:30 +0000 (0:00:00.035) 0:00:02.719 ********* included: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:27:30 +0000 (0:00:00.028) 0:00:02.748 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:27:31 +0000 (0:00:00.371) 0:00:03.119 ********* skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-6.qcow2.snap] => (item=RedHat_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/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/vars/RedHat_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.yml" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.10.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:27:31 +0000 (0:00:00.057) 0:00:03.176 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-123.el6_9.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:27:31 +0000 (0:00:00.485) 0:00:03.661 ********* skipping: [/cache/rhel-6.qcow2.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/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:27:31 +0000 (0:00:00.024) 0:00:03.686 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:27:31 +0000 (0:00:00.024) 0:00:03.710 ********* changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.6636.2022-07-21@16:27:32~", "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-1658435251.9797685-48689-114988098692071/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-6.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:36 Thursday 21 July 2022 20:27:32 +0000 (0:00:00.945) 0:00:04.656 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMKSG9zdCAqCiAgRm9yd2FyZFgxMVRydXN0ZWQgeWVzCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCiAgU2VuZEVudiBMQU5HIExDX0NUWVBFIExDX05VTUVSSUMgTENfVElNRSBMQ19DT0xMQVRFIExDX01PTkVUQVJZIExDX01FU1NBR0VTClNlbmRFbnYgTENfUEFQRVIgTENfTkFNRSBMQ19BRERSRVNTIExDX1RFTEVQSE9ORSBMQ19NRUFTVVJFTUVOVApTZW5kRW52IExDX0lERU5USUZJQ0FUSU9OIExDX0FMTCBMQU5HVUFHRQpTZW5kRW52IFhNT0RJRklFUlMK", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:41 Thursday 21 July 2022 20:27:33 +0000 (0:00:00.406) 0:00:05.062 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:49 Thursday 21 July 2022 20:27:33 +0000 (0:00:00.048) 0:00:05.111 ********* included: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml for /cache/rhel-6.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:27:33 +0000 (0:00:00.032) 0:00:05.144 ********* ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.x3DOsI//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.x3DOsI//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.003484", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:27:33.186216", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:27:33.182732" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.x3DOsI//etc/ssh/ssh_config; then\n cp /tmp/ansible.x3DOsI//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.005495", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:27:33.435362", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:27:33.429867" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:27:33 +0000 (0:00:00.542) 0:00:05.687 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.x3DOsI", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:27:34 +0000 (0:00:00.406) 0:00:06.093 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 0.96s /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:2 --------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 0.95s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Backup files ------------------------------------------------------------ 0.66s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13 ------------------------------------ Make sure openssh is installed before creating backup ------------------- 0.62s /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.54s /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.49s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Download the global configuration file ---------------------------------- 0.41s /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:36 -------------------------------- Remove temporary directory for backup files ----------------------------- 0.41s /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.37s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.35s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Verify the options are in the file -------------------------------------- 0.05s /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:41 -------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:14 -------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:49 -------------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2 ------------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tests_precedence.yml:11 -------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpsqnv7rd5/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/tmp6e14t4bh 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/tmpyr9b2k_r/tests/ssh/tests_precedence.yml PLAY [Test options precedence when mixing ssh dict and ssh_* variables] ******** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:2 Thursday 21 July 2022 20:29:03 +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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:11 Thursday 21 July 2022 20:29:04 +0000 (0:00:00.958) 0:00:00.971 ********* included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml for /cache/rhel-6.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:29:04 +0000 (0:00:00.028) 0:00:01.000 ********* included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml for /cache/rhel-6.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:29:04 +0000 (0:00:00.027) 0:00:01.027 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:29:04 +0000 (0:00:00.021) 0:00:01.049 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:29:05 +0000 (0:00:00.627) 0:00:01.677 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.fxOGPp", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:29:05 +0000 (0:00:00.363) 0:00:02.040 ********* ok: [/cache/rhel-6.qcow2.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.fxOGPp/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.fxOGPp/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004258", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:29:05.121168", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:29:05.116910" } ok: [/cache/rhel-6.qcow2.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.fxOGPp/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.fxOGPp/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008120", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:29:05.428041", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:29:05.419921" } TASK [Run role] **************************************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:14 Thursday 21 July 2022 20:29:06 +0000 (0:00:00.697) 0:00:02.738 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:29:06 +0000 (0:00:00.038) 0:00:02.777 ********* included: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:29:06 +0000 (0:00:00.030) 0:00:02.807 ********* ok: [/cache/rhel-6.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:29:06 +0000 (0:00:00.378) 0:00:03.185 ********* skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-6.qcow2.snap] => (item=RedHat_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/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.yml" } skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_6.10.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:29:06 +0000 (0:00:00.056) 0:00:03.242 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-123.el6_9.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-123.el6_9.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/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:29:07 +0000 (0:00:00.485) 0:00:03.728 ********* skipping: [/cache/rhel-6.qcow2.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/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:29:07 +0000 (0:00:00.025) 0:00:03.754 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:29:07 +0000 (0:00:00.028) 0:00:03.782 ********* changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.6641.2022-07-21@16:29:07~", "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-1658435347.2194152-51280-198783253019635/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-6.qcow2.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:36 Thursday 21 July 2022 20:29:08 +0000 (0:00:00.993) 0:00:04.776 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClBvcnQgMjIyClN0cmljdEhvc3RLZXlDaGVja2luZyB5ZXMKSG9zdCAqCiAgRm9yd2FyZFgxMVRydXN0ZWQgeWVzCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCiAgU2VuZEVudiBMQU5HIExDX0NUWVBFIExDX05VTUVSSUMgTENfVElNRSBMQ19DT0xMQVRFIExDX01PTkVUQVJZIExDX01FU1NBR0VTClNlbmRFbnYgTENfUEFQRVIgTENfTkFNRSBMQ19BRERSRVNTIExDX1RFTEVQSE9ORSBMQ19NRUFTVVJFTUVOVApTZW5kRW52IExDX0lERU5USUZJQ0FUSU9OIExDX0FMTCBMQU5HVUFHRQpTZW5kRW52IFhNT0RJRklFUlMK", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:41 Thursday 21 July 2022 20:29:08 +0000 (0:00:00.403) 0:00:05.179 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:49 Thursday 21 July 2022 20:29:08 +0000 (0:00:00.047) 0:00:05.227 ********* included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml for /cache/rhel-6.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:29:08 +0000 (0:00:00.028) 0:00:05.256 ********* ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.fxOGPp//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.fxOGPp//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.003544", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:29:08.264841", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:29:08.261297" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.fxOGPp//etc/ssh/ssh_config; then\n cp /tmp/ansible.fxOGPp//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.005990", "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, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "end": "2022-07-21 16:29:08.524148", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:29:08.518158" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:29:09 +0000 (0:00:00.579) 0:00:05.835 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.fxOGPp", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:29:09 +0000 (0:00:00.414) 0:00:06.249 ********* =============================================================================== fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.99s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.96s /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:2 ----------------------------- Backup files ------------------------------------------------------------ 0.70s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13 -------------------------------- Make sure openssh is installed before creating backup ------------------- 0.63s /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.58s /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.49s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.41s /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.40s /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:36 ---------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.38s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.36s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:5 --------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Verify the options are in the file -------------------------------------- 0.05s /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:41 ---------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:14 ---------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:49 ---------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tests_precedence.yml:11 ---------------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Setup ------------------------------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2 --------------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Ensure facts used by test ----------------------------------------------- 0.02s /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:2 ----------------------------------