# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Thursday 11 August 2022 19:30:08 +0000 (0:00:00.019) 0:00:00.019 ******* ok: [sut] TASK [Backup configuration files] ********************************************** Thursday 11 August 2022 19:30:09 +0000 (0:00:01.065) 0:00:01.084 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-4MxgHW/tests/tasks/backup.yml for sut TASK [Setup] ******************************************************************* Thursday 11 August 2022 19:30:09 +0000 (0:00:00.038) 0:00:01.122 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-4MxgHW/tests/tasks/setup.yml for sut TASK [Ensure facts used by test] *********************************************** Thursday 11 August 2022 19:30:10 +0000 (0:00:00.038) 0:00:01.160 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* Thursday 11 August 2022 19:30:10 +0000 (0:00:00.030) 0:00:01.191 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** Thursday 11 August 2022 19:30:12 +0000 (0:00:02.065) 0:00:03.256 ******* ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.3mu61yk5", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ Thursday 11 August 2022 19:30:12 +0000 (0:00:00.377) 0:00:03.634 ******* 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.3mu61yk5/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp /etc/ssh_config.d/00-ansible.conf /tmp/ansible.3mu61yk5/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004542", "end": "2022-08-11 19:30:12.859813", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-08-11 19:30:12.855271" } 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.3mu61yk5/$(dirname /etc/ssh_config);\n cp /etc/ssh_config /tmp/ansible.3mu61yk5/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.004419", "end": "2022-08-11 19:30:13.093778", "item": "/etc/ssh_config", "rc": 0, "start": "2022-08-11 19:30:13.089359" } PLAY [Ensure that the role runs with default parameters] *********************** TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** Thursday 11 August 2022 19:30:13 +0000 (0:00:00.684) 0:00:04.318 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-4MxgHW/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 19:30:13 +0000 (0:00:00.038) 0:00:04.357 ******* ok: [sut] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** Thursday 11 August 2022 19:30:13 +0000 (0:00:00.443) 0:00:04.800 ******* 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_8.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-4MxgHW/tests/roles/linux-system-roles.ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [sut] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* Thursday 11 August 2022 19:30:13 +0000 (0:00:00.075) 0:00:04.876 ******* 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 19:30:15 +0000 (0:00:01.736) 0:00:06.612 ******* 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 19:30:15 +0000 (0:00:00.036) 0:00:06.649 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** Thursday 11 August 2022 19:30:15 +0000 (0:00:00.036) 0:00:06.685 ******* 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-1660246215.6377332-4416-47285468556331/source", "state": "file", "uid": 0 } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Thursday 11 August 2022 19:30:16 +0000 (0:00:01.304) 0:00:07.990 ******* ok: [sut] TASK [Restore configuration files] ********************************************* Thursday 11 August 2022 19:30:17 +0000 (0:00:00.726) 0:00:08.717 ******* included: /WORKDIR/dist-git-ssh-cast-value-to-string-in-jinja-4MxgHW/tests/tasks/restore.yml for sut TASK [Restore backed up files and remove what was not present] ***************** Thursday 11 August 2022 19:30:17 +0000 (0:00:00.036) 0:00:08.753 ******* ok: [sut] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.3mu61yk5//etc/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.3mu61yk5//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.004300", "end": "2022-08-11 19:30:17.851480", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-08-11 19:30:17.847180" } ok: [sut] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.3mu61yk5//etc/ssh_config; then\n cp /tmp/ansible.3mu61yk5//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.004283", "end": "2022-08-11 19:30:18.080233", "item": "/etc/ssh_config", "rc": 0, "start": "2022-08-11 19:30:18.075950" } TASK [Remove temporary directory for backup files] ***************************** Thursday 11 August 2022 19:30:18 +0000 (0:00:00.510) 0:00:09.264 ******* ok: [sut] => { "changed": false, "path": "/tmp/ansible.3mu61yk5", "state": "absent" } PLAY RECAP ********************************************************************* sut : ok=15 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 11 August 2022 19:30:18 +0000 (0:00:00.434) 0:00:09.698 ******* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.07s linux-system-roles.ssh : Ensure required packages are installed --------- 1.74s linux-system-roles.ssh : Generate the configuration file ---------------- 1.30s Gathering Facts --------------------------------------------------------- 1.07s Gathering Facts --------------------------------------------------------- 0.73s Backup files ------------------------------------------------------------ 0.68s Restore backed up files and remove what was not present ----------------- 0.51s linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.44s Remove temporary directory for backup files ----------------------------- 0.43s Create a temporary directory for backup files --------------------------- 0.38s 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 Backup configuration files ---------------------------------------------- 0.04s Restore 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. ---^---^---^---^---^---