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_match.yml ****************************************************** 1 plays in /tmp/tmptgthu93e/tests/tests_match.yml PLAY [Verify default packages as well as additional are installed] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptgthu93e/tests/tests_match.yml:2 Thursday 21 July 2022 20:29:46 +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/tmptgthu93e/tests/tests_match.yml:11 Thursday 21 July 2022 20:29:47 +0000 (0:00:00.996) 0:00:01.009 ********* included: /tmp/tmptgthu93e/tests/tasks/backup.yml for /cache/centos-6.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:29:47 +0000 (0:00:00.029) 0:00:01.038 ********* included: /tmp/tmptgthu93e/tests/tasks/setup.yml for /cache/centos-6.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmptgthu93e/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:29:47 +0000 (0:00:00.029) 0:00:01.068 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmptgthu93e/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:29:47 +0000 (0:00:00.057) 0:00:01.125 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:29:48 +0000 (0:00:00.600) 0:00:01.726 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._DLhF4", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmptgthu93e/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:29:48 +0000 (0:00:00.370) 0:00:02.096 ********* 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._DLhF4/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible._DLhF4/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003838", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:48.142235", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:29:48.138397" } 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._DLhF4/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible._DLhF4/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008393", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:48.401767", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:29:48.393374" } TASK [Run role] **************************************************************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:14 Thursday 21 July 2022 20:29:49 +0000 (0:00:00.682) 0:00:02.779 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:29:49 +0000 (0:00:00.037) 0:00:02.816 ********* included: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-6.qcow2c.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:29:49 +0000 (0:00:00.028) 0:00:02.845 ********* ok: [/cache/centos-6.qcow2c.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:29:49 +0000 (0:00:00.383) 0:00:03.228 ********* skipping: [/cache/centos-6.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } }, "__ssh_supports_validate": false }, "ansible_included_var_files": [ "/tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/vars/CentOS_6.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.yml" } skipping: [/cache/centos-6.qcow2c.snap] => (item=CentOS_6.10.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_6.10.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:29:49 +0000 (0:00:00.053) 0:00:03.282 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-5.3p1-124.el6_10.x86_64 providing openssh is already installed", "openssh-clients-5.3p1-124.el6_10.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:29:50 +0000 (0:00:00.469) 0:00:03.751 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:29:50 +0000 (0:00:00.029) 0:00:03.781 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:29:50 +0000 (0:00:00.026) 0:00:03.807 ********* changed: [/cache/centos-6.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.5505.2022-07-21@20:29:50~", "changed": true, "checksum": "2d52bd7a92154556a85b5648fae7b5c2c00ae1ff", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "fd6c6700f814034939d889b85fd00fed", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 172, "src": "/root/.ansible/tmp/ansible-tmp-1658435390.586818-52415-238558813126039/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-6.qcow2c.snap TASK [Download the custom configuration file] ********************************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:42 Thursday 21 July 2022 20:29:51 +0000 (0:00:00.984) 0:00:04.792 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCk1hdGNoIHVzZXIgdGVzdHVzZXIKICBDb21wcmVzc2lvbiB5ZXMKTWF0Y2ggaG9zdCBleGFtcGxlCiAgSG9zdG5hbWUgZXhhbXBsZS5jb20KSG9zdCBsb2NhbAogIFVzZXIgbG9jYWx1c2VyCkhvc3QgcmVtb3RlCiAgSG9zdG5hbWUgcmVtb3RlLmV4YW1wbGUuY29tCg==", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:47 Thursday 21 July 2022 20:29:51 +0000 (0:00:00.411) 0:00:05.204 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [Run first ssh in test mode to evaluate the configuration] **************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:61 Thursday 21 July 2022 20:29:51 +0000 (0:00:00.054) 0:00:05.258 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run second ssh in test mode to evaluate the configuration] *************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:65 Thursday 21 July 2022 20:29:51 +0000 (0:00:00.037) 0:00:05.295 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run third ssh in test mode to evaluate the configuration] **************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:69 Thursday 21 July 2022 20:29:52 +0000 (0:00:00.041) 0:00:05.337 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the options are correctly evaluated] ****************************** task path: /tmp/tmptgthu93e/tests/tests_match.yml:73 Thursday 21 July 2022 20:29:52 +0000 (0:00:00.041) 0:00:05.379 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Restore configuration files] ********************************************* task path: /tmp/tmptgthu93e/tests/tests_match.yml:94 Thursday 21 July 2022 20:29:52 +0000 (0:00:00.037) 0:00:05.416 ********* included: /tmp/tmptgthu93e/tests/tasks/restore.yml for /cache/centos-6.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:29:52 +0000 (0:00:00.030) 0:00:05.447 ********* 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._DLhF4//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible._DLhF4//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.003905", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:51.404702", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:29:51.400797" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible._DLhF4//etc/ssh/ssh_config; then\n cp /tmp/ansible._DLhF4//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.006345", "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "end": "2022-07-21 20:29:51.664111", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:29:51.657766" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmptgthu93e/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:29:52 +0000 (0:00:00.594) 0:00:06.041 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible._DLhF4", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 Thursday 21 July 2022 20:29:53 +0000 (0:00:00.395) 0:00:06.437 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmptgthu93e/tests/tests_match.yml:2 -------------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 0.98s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Backup files ------------------------------------------------------------ 0.68s /tmp/tmptgthu93e/tests/tasks/backup.yml:13 ------------------------------------ Make sure openssh is installed before creating backup ------------------- 0.60s /tmp/tmptgthu93e/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.59s /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 ---------- Download the custom configuration file ---------------------------------- 0.41s /tmp/tmptgthu93e/tests/tests_match.yml:42 ------------------------------------- Remove temporary directory for backup files ----------------------------- 0.40s /tmp/tmptgthu93e/tests/tasks/restore.yml:15 ----------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.38s /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 ------------------------------------- Ensure facts used by test ----------------------------------------------- 0.06s /tmp/tmptgthu93e/tests/tasks/setup.yml:2 -------------------------------------- Verify the options are in the file -------------------------------------- 0.05s /tmp/tmptgthu93e/tests/tests_match.yml:47 ------------------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmptgthu93e/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Run third ssh in test mode to evaluate the configuration ---------------- 0.04s /tmp/tmptgthu93e/tests/tests_match.yml:69 ------------------------------------- Run second ssh in test mode to evaluate the configuration --------------- 0.04s /tmp/tmptgthu93e/tests/tests_match.yml:65 ------------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmptgthu93e/tests/tests_match.yml:14 ------------------------------------- Verify the options are correctly evaluated ------------------------------ 0.04s /tmp/tmptgthu93e/tests/tests_match.yml:73 ------------------------------------- Run first ssh in test mode to evaluate the configuration ---------------- 0.04s /tmp/tmptgthu93e/tests/tests_match.yml:61 ------------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmptgthu93e/tests/tests_match.yml:94 ------------------------------------- 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 --------- 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_match.yml ****************************************************** 1 plays in /tmp/tmpyajtit7a/tests/ssh/tests_match.yml PLAY [Verify default packages as well as additional are installed] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:2 Thursday 21 July 2022 20:31:22 +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_match.yml:11 Thursday 21 July 2022 20:31:23 +0000 (0:00:01.018) 0:00:01.030 ********* 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:23 +0000 (0:00:00.029) 0:00:01.060 ********* 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:23 +0000 (0:00:00.049) 0:00:01.110 ********* 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:23 +0000 (0:00:00.022) 0:00:01.132 ********* 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:24 +0000 (0:00:00.592) 0:00:01.725 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.HfZaF3", "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:24 +0000 (0:00:00.369) 0:00:02.094 ********* 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.HfZaF3/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.HfZaF3/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003857", "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:24.777194", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:31:24.773337" } 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.HfZaF3/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.HfZaF3/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008698", "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:25.047268", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:31:25.038570" } TASK [Run role] **************************************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:14 Thursday 21 July 2022 20:31:25 +0000 (0:00:00.699) 0:00:02.793 ********* 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:25 +0000 (0:00:00.041) 0:00:02.835 ********* 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:25 +0000 (0:00:00.033) 0:00:02.868 ********* 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:25 +0000 (0:00:00.379) 0:00:03.247 ********* 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:25 +0000 (0:00:00.056) 0:00:03.304 ********* 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:26 +0000 (0:00:00.474) 0:00:03.778 ********* 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:26 +0000 (0:00:00.026) 0:00:03.805 ********* 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:26 +0000 (0:00:00.027) 0:00:03.833 ********* changed: [/cache/centos-6.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.5508.2022-07-21@20:31:27~", "changed": true, "checksum": "2d52bd7a92154556a85b5648fae7b5c2c00ae1ff", "dest": "/etc/ssh/ssh_config", "gid": 0, "group": "root", "md5sum": "fd6c6700f814034939d889b85fd00fed", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 172, "src": "/root/.ansible/tmp/ansible-tmp-1658435486.4948962-55026-229320032995551/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-6.qcow2c.snap TASK [Download the custom configuration file] ********************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:42 Thursday 21 July 2022 20:31:27 +0000 (0:00:01.001) 0:00:04.834 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCk1hdGNoIHVzZXIgdGVzdHVzZXIKICBDb21wcmVzc2lvbiB5ZXMKTWF0Y2ggaG9zdCBleGFtcGxlCiAgSG9zdG5hbWUgZXhhbXBsZS5jb20KSG9zdCBsb2NhbAogIFVzZXIgbG9jYWx1c2VyCkhvc3QgcmVtb3RlCiAgSG9zdG5hbWUgcmVtb3RlLmV4YW1wbGUuY29tCg==", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:47 Thursday 21 July 2022 20:31:27 +0000 (0:00:00.406) 0:00:05.241 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [Run first ssh in test mode to evaluate the configuration] **************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:61 Thursday 21 July 2022 20:31:27 +0000 (0:00:00.055) 0:00:05.296 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run second ssh in test mode to evaluate the configuration] *************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:65 Thursday 21 July 2022 20:31:27 +0000 (0:00:00.034) 0:00:05.331 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run third ssh in test mode to evaluate the configuration] **************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:69 Thursday 21 July 2022 20:31:27 +0000 (0:00:00.034) 0:00:05.365 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the options are correctly evaluated] ****************************** task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:73 Thursday 21 July 2022 20:31:27 +0000 (0:00:00.034) 0:00:05.400 ********* skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Restore configuration files] ********************************************* task path: /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:93 Thursday 21 July 2022 20:31:28 +0000 (0:00:00.034) 0:00:05.434 ********* 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:28 +0000 (0:00:00.031) 0:00:05.465 ********* 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.HfZaF3//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.HfZaF3//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.003839", "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:28.020812", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:31:28.016973" } ok: [/cache/centos-6.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.HfZaF3//etc/ssh/ssh_config; then\n cp /tmp/ansible.HfZaF3//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.005979", "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:28.318470", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:31:28.312491" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:31:28 +0000 (0:00:00.601) 0:00:06.067 ********* ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.HfZaF3", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 Thursday 21 July 2022 20:31:29 +0000 (0:00:00.439) 0:00:06.506 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:2 ---------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.00s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Backup files ------------------------------------------------------------ 0.70s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:13 -------------------------------- Restore backed up files and remove what was not present ----------------- 0.60s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:2 -------------------------------- Make sure openssh is installed before creating backup ------------------- 0.59s /tmp/tmpyajtit7a/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.47s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.44s /tmp/tmpyajtit7a/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the custom configuration file ---------------------------------- 0.41s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:42 --------------------------------- 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.06s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:47 --------------------------------- Setup ------------------------------------------------------------------- 0.05s /tmp/tmpyajtit7a/tests/ssh/tasks/backup.yml:2 --------------------------------- Run role ---------------------------------------------------------------- 0.04s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:14 --------------------------------- Run second ssh in test mode to evaluate the configuration --------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:65 --------------------------------- Run first ssh in test mode to evaluate the configuration ---------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:61 --------------------------------- Run third ssh in test mode to evaluate the configuration ---------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:69 --------------------------------- Verify the options are correctly evaluated ------------------------------ 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:73 --------------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpharb6qhc/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmpyajtit7a/tests/ssh/tests_match.yml:93 ---------------------------------