# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Thursday 11 August 2022 20:03:02 +0000 (0:00:00.020) 0:00:00.020 ******* ok: [sut] TASK [Backup configuration files] ********************************************** Thursday 11 August 2022 20:03:03 +0000 (0:00:01.148) 0:00:01.169 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-DoWXN5/tests/tasks/backup.yml for sut TASK [Setup] ******************************************************************* Thursday 11 August 2022 20:03:04 +0000 (0:00:00.038) 0:00:01.207 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-DoWXN5/tests/tasks/setup.yml for sut TASK [Ensure facts used by test] *********************************************** Thursday 11 August 2022 20:03:04 +0000 (0:00:00.038) 0:00:01.245 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* Thursday 11 August 2022 20:03:04 +0000 (0:00:00.032) 0:00:01.278 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** Thursday 11 August 2022 20:03:05 +0000 (0:00:01.167) 0:00:02.446 ******* ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.8_r7poie", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ Thursday 11 August 2022 20:03:05 +0000 (0:00:00.404) 0:00:02.850 ******* ok: [sut] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.8_r7poie/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.8_r7poie/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003803", "end": "2022-08-11 20:03:06.020797", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-08-11 20:03:06.016994" } ok: [sut] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.8_r7poie/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.8_r7poie/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003703", "end": "2022-08-11 20:03:06.248524", "item": "/etc/ssh_config", "rc": 0, "start": "2022-08-11 20:03:06.244821" } PLAY [Ensure that the role runs with default parameters] *********************** TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** Thursday 11 August 2022 20:03:06 +0000 (0:00:00.673) 0:00:03.524 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-DoWXN5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for sut TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** Thursday 11 August 2022 20:03:06 +0000 (0:00:00.040) 0:00:03.565 ******* ok: [sut] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** Thursday 11 August 2022 20:03:06 +0000 (0:00:00.553) 0:00:04.118 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=RedHat_9.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-DoWXN5/tests/roles/linux-system-roles.ssh/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [sut] => (item=RedHat_9.1.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.1.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* Thursday 11 August 2022 20:03:06 +0000 (0:00:00.076) 0:00:04.195 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** Thursday 11 August 2022 20:03:07 +0000 (0:00:00.986) 0:00:05.181 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** Thursday 11 August 2022 20:03:08 +0000 (0:00:00.036) 0:00:05.217 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** Thursday 11 August 2022 20:03:08 +0000 (0:00:00.037) 0:00:05.254 ******* changed: [sut] => { "changed": true, "checksum": "15062ec12da5e642a2b0fb64c5e03d43b80d9cf0", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "88be21c8634b01869b9f694831b84c1d", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1660248188.1484437-4264-97278364234062/source", "state": "file", "uid": 0 } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Thursday 11 August 2022 20:03:09 +0000 (0:00:01.303) 0:00:06.558 ******* ok: [sut] TASK [Restore configuration files] ********************************************* Thursday 11 August 2022 20:03:10 +0000 (0:00:00.709) 0:00:07.268 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-DoWXN5/tests/tasks/restore.yml for sut TASK [Restore backed up files and remove what was not present] ***************** Thursday 11 August 2022 20:03:10 +0000 (0:00:00.038) 0:00:07.307 ******* ok: [sut] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.8_r7poie//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.8_r7poie//etc/ssh_config.d/00-ansible.conf $(dirname /etc/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.003797", "end": "2022-08-11 20:03:10.352583", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-08-11 20:03:10.348786" } ok: [sut] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.8_r7poie//etc/ssh_config; then\n cp /tmp/ansible.8_r7poie//etc/ssh_config $(dirname /etc/ssh_config)\nelif test -f /etc/ssh_config; then\n rm /etc/ssh_config\nfi\n", "delta": "0:00:00.003817", "end": "2022-08-11 20:03:10.583804", "item": "/etc/ssh_config", "rc": 0, "start": "2022-08-11 20:03:10.579987" } TASK [Remove temporary directory for backup files] ***************************** Thursday 11 August 2022 20:03:10 +0000 (0:00:00.517) 0:00:07.824 ******* ok: [sut] => { "changed": false, "path": "/tmp/ansible.8_r7poie", "state": "absent" } PLAY RECAP ********************************************************************* sut : ok=15 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 11 August 2022 20:03:11 +0000 (0:00:00.442) 0:00:08.267 ******* =============================================================================== linux-system-roles.ssh : Generate the configuration file ---------------- 1.30s Make sure openssh is installed before creating backup ------------------- 1.17s Gathering Facts --------------------------------------------------------- 1.15s linux-system-roles.ssh : Ensure required packages are installed --------- 0.99s Gathering Facts --------------------------------------------------------- 0.71s Backup files ------------------------------------------------------------ 0.67s linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.55s Restore backed up files and remove what was not present ----------------- 0.52s Remove temporary directory for backup files ----------------------------- 0.44s Create a temporary directory for backup files --------------------------- 0.40s linux-system-roles.ssh : Set platform/version specific variables -------- 0.08s linux-system-roles.ssh : Set platform/version specific variables -------- 0.04s Setup ------------------------------------------------------------------- 0.04s Restore configuration files --------------------------------------------- 0.04s Backup configuration files ---------------------------------------------- 0.04s linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.04s linux-system-roles.ssh : Gather information about the user for user configuration --- 0.04s Ensure facts used by test ----------------------------------------------- 0.03s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---