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_global_config.yml ********************************************** 1 plays in /tmp/tmpsqnv7rd5/tests/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:2 Thursday 21 July 2022 20:26:45 +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, 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_global_config.yml:11 Thursday 21 July 2022 20:26:46 +0000 (0:00:01.015) 0:00:01.028 ********* 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:26:46 +0000 (0:00:00.029) 0:00:01.058 ********* 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:26:46 +0000 (0:00:00.049) 0:00:01.107 ********* 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:26:46 +0000 (0:00:00.024) 0:00:01.132 ********* 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:26:47 +0000 (0:00:00.598) 0:00:01.730 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.sOxt3o", "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:26:47 +0000 (0:00:00.367) 0:00:02.097 ********* 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.sOxt3o/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.sOxt3o/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003681", "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:26:47.869372", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:26:47.865691" } 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.sOxt3o/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.sOxt3o/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.009129", "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:26:48.132860", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:26:48.123731" } TASK [Run role] **************************************************************** task path: /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:14 Thursday 21 July 2022 20:26:48 +0000 (0:00:00.695) 0:00:02.792 ********* 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:26:48 +0000 (0:00:00.036) 0:00:02.829 ********* 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:26:48 +0000 (0:00:00.029) 0:00:02.858 ********* 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:26:49 +0000 (0:00:00.377) 0:00:03.236 ********* 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:26:49 +0000 (0:00:00.057) 0:00:03.293 ********* 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:26:49 +0000 (0:00:00.495) 0:00:03.788 ********* 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:26:49 +0000 (0:00:00.026) 0:00:03.815 ********* 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:26:49 +0000 (0:00:00.029) 0:00:03.845 ********* changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.3449.2022-07-21@16:26:50~", "changed": true, "checksum": "f38a8a96250e45899f48c98e601512d496860083", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "db0ebde88fc58af96a9426da8aab8059", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 279, "src": "/root/.ansible/tmp/ansible-tmp-1658435209.7419128-47323-267245200194073/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_global_config.yml:50 Thursday 21 July 2022 20:26:50 +0000 (0:00:00.993) 0:00:04.838 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:55 Thursday 21 July 2022 20:26:51 +0000 (0:00:00.392) 0:00:05.230 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:73 Thursday 21 July 2022 20:26:51 +0000 (0:00:00.062) 0:00:05.293 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Restore configuration files] ********************************************* task path: /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:81 Thursday 21 July 2022 20:26:51 +0000 (0:00:00.046) 0:00:05.339 ********* 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:26:51 +0000 (0:00:00.032) 0:00:05.372 ********* 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.sOxt3o//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.sOxt3o//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.003459", "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:26:51.052867", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:26:51.049408" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.sOxt3o//etc/ssh/ssh_config; then\n cp /tmp/ansible.sOxt3o//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.005963", "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:26:51.303296", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:26:51.297333" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:26:51 +0000 (0:00:00.593) 0:00:05.965 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.sOxt3o", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 21 July 2022 20:26:52 +0000 (0:00:00.424) 0:00:06.390 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:2 ------------------------------ linux-system-roles.ssh : Generate the configuration file ---------------- 0.99s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Backup files ------------------------------------------------------------ 0.70s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13 ------------------------------------ Make sure openssh is installed before creating backup ------------------- 0.60s /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.59s /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.50s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Remove temporary directory for backup files ----------------------------- 0.42s /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 ----------------------------------- Download the global configuration file ---------------------------------- 0.39s /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:50 ----------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.38s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.37s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:55 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Setup ------------------------------------------------------------------- 0.05s /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2 ------------------------------------- Verify the defaults are not in the drop-in file ------------------------- 0.05s /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:73 ----------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:14 ----------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tests_global_config.yml:81 ----------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpsqnv7rd5/tests/tests_global_config.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 : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/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_global_config.yml ********************************************** 1 plays in /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:2 Thursday 21 July 2022 20:28:20 +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_global_config.yml:11 Thursday 21 July 2022 20:28:21 +0000 (0:00:00.986) 0:00:00.999 ********* 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:28:21 +0000 (0:00:00.029) 0:00:01.028 ********* 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:28:21 +0000 (0:00:00.029) 0:00:01.058 ********* 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:28:21 +0000 (0:00:00.058) 0:00:01.116 ********* 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:28:22 +0000 (0:00:00.622) 0:00:01.739 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.jBsUzm", "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:28:22 +0000 (0:00:00.356) 0:00:02.096 ********* 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.jBsUzm/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.jBsUzm/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003368", "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:28:22.656303", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:28:22.652935" } 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.jBsUzm/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.jBsUzm/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.009277", "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:28:22.915274", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:28:22.905997" } TASK [Run role] **************************************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:14 Thursday 21 July 2022 20:28:23 +0000 (0:00:00.668) 0:00:02.764 ********* 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:28:23 +0000 (0:00:00.040) 0:00:02.805 ********* 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:28:23 +0000 (0:00:00.031) 0:00:02.837 ********* 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:28:24 +0000 (0:00:00.376) 0:00:03.213 ********* 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:28:24 +0000 (0:00:00.055) 0:00:03.269 ********* 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:28:24 +0000 (0:00:00.497) 0:00:03.766 ********* 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:28:24 +0000 (0:00:00.025) 0:00:03.792 ********* 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:28:24 +0000 (0:00:00.023) 0:00:03.816 ********* changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/ssh/ssh_config.3454.2022-07-21@16:28:24~", "changed": true, "checksum": "f38a8a96250e45899f48c98e601512d496860083", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "db0ebde88fc58af96a9426da8aab8059", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 279, "src": "/root/.ansible/tmp/ansible-tmp-1658435304.7396202-49914-197045728173475/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_global_config.yml:50 Thursday 21 July 2022 20:28:25 +0000 (0:00:00.986) 0:00:04.802 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:55 Thursday 21 July 2022 20:28:26 +0000 (0:00:00.404) 0:00:05.207 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:73 Thursday 21 July 2022 20:28:26 +0000 (0:00:00.060) 0:00:05.267 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:81 Thursday 21 July 2022 20:28:26 +0000 (0:00:00.039) 0:00:05.306 ********* 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:28:26 +0000 (0:00:00.032) 0:00:05.339 ********* 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.jBsUzm//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.jBsUzm//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.003617", "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:28:25.785328", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 16:28:25.781711" } ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.jBsUzm//etc/ssh/ssh_config; then\n cp /tmp/ansible.jBsUzm//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.006616", "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:28:26.091611", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:28:26.084995" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:28:26 +0000 (0:00:00.604) 0:00:05.944 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.jBsUzm", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 21 July 2022 20:28:27 +0000 (0:00:00.426) 0:00:06.370 ********* =============================================================================== 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.99s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:2 -------------------------- Backup files ------------------------------------------------------------ 0.67s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13 -------------------------------- Make sure openssh is installed before creating backup ------------------- 0.62s /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.60s /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.50s /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.43s /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.40s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:50 ------------------------- 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 --------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:55 ------------------------- Ensure facts used by test ----------------------------------------------- 0.06s /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:2 ---------------------------------- 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 Run role ---------------------------------------------------------------- 0.04s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:14 ------------------------- Verify the defaults are not in the drop-in file ------------------------- 0.04s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:73 ------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:81 ------------------------- 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 Setup ------------------------------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2 --------------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpyr9b2k_r/tests/ssh/tests_global_config.yml:11 ------------------------- 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