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/tmpond44ouu 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/tmpkp2113mn/tests/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:2 Thursday 21 July 2022 20:14:31 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:11 Thursday 21 July 2022 20:14:32 +0000 (0:00:00.963) 0:00:00.976 ********* included: /tmp/tmpkp2113mn/tests/tasks/backup.yml for /cache/centos-7.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmpkp2113mn/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:14:32 +0000 (0:00:00.026) 0:00:01.003 ********* included: /tmp/tmpkp2113mn/tests/tasks/setup.yml for /cache/centos-7.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpkp2113mn/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:14:32 +0000 (0:00:00.025) 0:00:01.028 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpkp2113mn/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:14:32 +0000 (0:00:00.020) 0:00:01.049 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpkp2113mn/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:14:33 +0000 (0:00:00.640) 0:00:01.689 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.VaMx_J", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpkp2113mn/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:14:33 +0000 (0:00:00.395) 0:00:02.085 ********* ok: [/cache/centos-7.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.VaMx_J/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.VaMx_J/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003671", "end": "2022-07-21 20:14:33.077122", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:14:33.073451" } ok: [/cache/centos-7.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.VaMx_J/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.VaMx_J/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.012321", "end": "2022-07-21 20:14:33.398808", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:14:33.386487" } TASK [Run role] **************************************************************** task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:14 Thursday 21 July 2022 20:14:34 +0000 (0:00:00.720) 0:00:02.806 ********* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:14:34 +0000 (0:00:00.033) 0:00:02.839 ********* included: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:14:34 +0000 (0:00:00.027) 0:00:02.867 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:14:34 +0000 (0:00:00.399) 0:00:03.267 ********* skipping: [/cache/centos-7.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.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" ] } } }, "ansible_included_var_files": [ "/tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:14:34 +0000 (0:00:00.050) 0:00:03.317 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-7.4p1-22.el7_9.x86_64 providing openssh is already installed", "openssh-clients-7.4p1-22.el7_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/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:14:35 +0000 (0:00:00.495) 0:00:03.813 ********* skipping: [/cache/centos-7.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/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:14:35 +0000 (0:00:00.027) 0:00:03.840 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:14:35 +0000 (0:00:00.027) 0:00:03.867 ********* changed: [/cache/centos-7.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.4014.2022-07-21@20:14:35~", "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-1658434475.5349574-34101-127624538906886/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-7.qcow2c.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:50 Thursday 21 July 2022 20:14:36 +0000 (0:00:00.974) 0:00:04.842 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:55 Thursday 21 July 2022 20:14:36 +0000 (0:00:00.418) 0:00:05.261 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:73 Thursday 21 July 2022 20:14:36 +0000 (0:00:00.057) 0:00:05.318 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Restore configuration files] ********************************************* task path: /tmp/tmpkp2113mn/tests/tests_global_config.yml:81 Thursday 21 July 2022 20:14:36 +0000 (0:00:00.032) 0:00:05.350 ********* included: /tmp/tmpkp2113mn/tests/tasks/restore.yml for /cache/centos-7.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpkp2113mn/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:14:36 +0000 (0:00:00.023) 0:00:05.374 ********* ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.VaMx_J//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.VaMx_J//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.004004", "end": "2022-07-21 20:14:36.289546", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:14:36.285542" } ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.VaMx_J//etc/ssh/ssh_config; then\n cp /tmp/ansible.VaMx_J//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.007132", "end": "2022-07-21 20:14:36.578426", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:14:36.571294" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpkp2113mn/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:14:37 +0000 (0:00:00.616) 0:00:05.990 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.VaMx_J", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 21 July 2022 20:14:38 +0000 (0:00:00.444) 0:00:06.435 ********* =============================================================================== linux-system-roles.ssh : Generate the configuration file ---------------- 0.97s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 0.96s /tmp/tmpkp2113mn/tests/tests_global_config.yml:2 ------------------------------ Backup files ------------------------------------------------------------ 0.72s /tmp/tmpkp2113mn/tests/tasks/backup.yml:13 ------------------------------------ Make sure openssh is installed before creating backup ------------------- 0.64s /tmp/tmpkp2113mn/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.62s /tmp/tmpkp2113mn/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.50s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Remove temporary directory for backup files ----------------------------- 0.44s /tmp/tmpkp2113mn/tests/tasks/restore.yml:15 ----------------------------------- Download the global configuration file ---------------------------------- 0.42s /tmp/tmpkp2113mn/tests/tests_global_config.yml:50 ----------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.40s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Create a temporary directory for backup files --------------------------- 0.40s /tmp/tmpkp2113mn/tests/tasks/backup.yml:5 ------------------------------------- Verify the options are in the file -------------------------------------- 0.06s /tmp/tmpkp2113mn/tests/tests_global_config.yml:55 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Run role ---------------------------------------------------------------- 0.03s /tmp/tmpkp2113mn/tests/tests_global_config.yml:14 ----------------------------- Verify the defaults are not in the drop-in file ------------------------- 0.03s /tmp/tmpkp2113mn/tests/tests_global_config.yml:73 ----------------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmpkp2113mn/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 --------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpkp2113mn/tests/tests_global_config.yml:11 ----------------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpkp2113mn/tests/tasks/backup.yml:2 ------------------------------------- Restore configuration files --------------------------------------------- 0.02s /tmp/tmpkp2113mn/tests/tests_global_config.yml:81 ----------------------------- 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/tmpond44ouu 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/tmp3c63ut4b/tests/ssh/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:2 Thursday 21 July 2022 20:16:24 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:11 Thursday 21 July 2022 20:16:25 +0000 (0:00:00.979) 0:00:00.992 ********* included: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml for /cache/centos-7.qcow2c.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:16:25 +0000 (0:00:00.026) 0:00:01.018 ********* included: /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml for /cache/centos-7.qcow2c.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:16:25 +0000 (0:00:00.024) 0:00:01.043 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:16:25 +0000 (0:00:00.020) 0:00:01.063 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:16:25 +0000 (0:00:00.644) 0:00:01.707 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.JG4QQU", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:16:26 +0000 (0:00:00.381) 0:00:02.089 ********* ok: [/cache/centos-7.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.JG4QQU/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.JG4QQU/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003902", "end": "2022-07-21 20:16:26.560701", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:16:26.556799" } ok: [/cache/centos-7.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.JG4QQU/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.JG4QQU/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.011726", "end": "2022-07-21 20:16:26.884720", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:16:26.872994" } TASK [Run role] **************************************************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:14 Thursday 21 July 2022 20:16:27 +0000 (0:00:00.732) 0:00:02.822 ********* TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:16:27 +0000 (0:00:00.035) 0:00:02.857 ********* included: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:16:27 +0000 (0:00:00.027) 0:00:02.884 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:16:27 +0000 (0:00:00.407) 0:00:03.292 ********* skipping: [/cache/centos-7.qcow2c.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.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" ] } } }, "ansible_included_var_files": [ "/tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [/cache/centos-7.qcow2c.snap] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:16:27 +0000 (0:00:00.052) 0:00:03.344 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "openssh-7.4p1-22.el7_9.x86_64 providing openssh is already installed", "openssh-clients-7.4p1-22.el7_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/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:16:28 +0000 (0:00:00.498) 0:00:03.843 ********* skipping: [/cache/centos-7.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/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:16:28 +0000 (0:00:00.025) 0:00:03.868 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:16:28 +0000 (0:00:00.025) 0:00:03.893 ********* changed: [/cache/centos-7.qcow2c.snap] => { "backup_file": "/etc/ssh/ssh_config.4024.2022-07-21@20:16:28~", "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-1658434588.2514472-37112-199170702275685/source", "state": "file", "uid": 0 } META: role_complete for /cache/centos-7.qcow2c.snap TASK [Download the global configuration file] ********************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:50 Thursday 21 July 2022 20:16:29 +0000 (0:00:00.995) 0:00:04.889 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:55 Thursday 21 July 2022 20:16:29 +0000 (0:00:00.418) 0:00:05.307 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:73 Thursday 21 July 2022 20:16:29 +0000 (0:00:00.054) 0:00:05.362 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Restore configuration files] ********************************************* task path: /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:81 Thursday 21 July 2022 20:16:29 +0000 (0:00:00.032) 0:00:05.394 ********* included: /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml for /cache/centos-7.qcow2c.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:16:29 +0000 (0:00:00.026) 0:00:05.421 ********* ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.JG4QQU//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.JG4QQU//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.003751", "end": "2022-07-21 20:16:29.800862", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-07-21 20:16:29.797111" } ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.JG4QQU//etc/ssh/ssh_config; then\n cp /tmp/ansible.JG4QQU//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.006877", "end": "2022-07-21 20:16:30.091042", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:16:30.084165" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:16:30 +0000 (0:00:00.611) 0:00:06.032 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "path": "/tmp/ansible.JG4QQU", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=16 changed=1 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 21 July 2022 20:16:30 +0000 (0:00:00.463) 0:00:06.496 ********* =============================================================================== fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.00s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:2 -------------------------- Backup files ------------------------------------------------------------ 0.73s /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:13 -------------------------------- Make sure openssh is installed before creating backup ------------------- 0.64s /tmp/tmp3c63ut4b/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.61s /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.50s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.46s /tmp/tmp3c63ut4b/tests/ssh/tasks/restore.yml:15 ------------------------------- Download the global configuration file ---------------------------------- 0.42s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:50 ------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.41s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Create a temporary directory for backup files --------------------------- 0.38s /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:5 --------------------------------- Verify the options are in the file -------------------------------------- 0.05s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:55 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Run role ---------------------------------------------------------------- 0.04s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:14 ------------------------- Verify the defaults are not in the drop-in file ------------------------- 0.03s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:73 ------------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 0.03s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:81 ------------------------- Backup configuration files ---------------------------------------------- 0.03s /tmp/tmp3c63ut4b/tests/ssh/tests_global_config.yml:11 ------------------------- fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /tmp/tmpond44ouu/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Setup ------------------------------------------------------------------- 0.02s /tmp/tmp3c63ut4b/tests/ssh/tasks/backup.yml:2 ---------------------------------