# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* Thursday 11 August 2022 19:48:02 +0000 (0:00:00.020) 0:00:00.020 ******* ok: [sut] TASK [Backup configuration files] ********************************************** Thursday 11 August 2022 19:48:04 +0000 (0:00:01.084) 0:00:01.104 ******* 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:48:04 +0000 (0:00:00.038) 0:00:01.143 ******* 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:48:04 +0000 (0:00:00.036) 0:00:01.179 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* Thursday 11 August 2022 19:48:04 +0000 (0:00:00.030) 0:00:01.210 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** Thursday 11 August 2022 19:48:06 +0000 (0:00:02.045) 0:00:03.255 ******* ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.wck2uje3", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ Thursday 11 August 2022 19:48:06 +0000 (0:00:00.374) 0:00:03.630 ******* ok: [sut] => (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.wck2uje3/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.wck2uje3/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004257", "end": "2022-08-11 19:48:06.944293", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2022-08-11 19:48:06.940036" } ok: [sut] => (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.wck2uje3/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.wck2uje3/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.013623", "end": "2022-08-11 19:48:07.182927", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-08-11 19:48:07.169304" } TASK [Run role] **************************************************************** Thursday 11 August 2022 19:48:07 +0000 (0:00:00.644) 0:00:04.274 ******* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** Thursday 11 August 2022 19:48:07 +0000 (0:00:00.047) 0:00:04.322 ******* 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:48:07 +0000 (0:00:00.039) 0:00:04.361 ******* ok: [sut] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** Thursday 11 August 2022 19:48:07 +0000 (0:00:00.459) 0:00:04.821 ******* 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:48:07 +0000 (0:00:00.076) 0:00:04.897 ******* 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:48:09 +0000 (0:00:01.752) 0:00:06.650 ******* 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:48:09 +0000 (0:00:00.036) 0:00:06.686 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** Thursday 11 August 2022 19:48:09 +0000 (0:00:00.036) 0:00:06.723 ******* changed: [sut] => { "changed": true, "checksum": "c7d2fdf0c071ab237e59a08c06f23bcc2c2e68c1", "dest": "/tmp/ssh_config_with_defaults", "gid": 0, "group": "root", "md5sum": "cd5804b194841f54730c3be38600d19d", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 90, "src": "/root/.ansible/tmp/ansible-tmp-1660247289.7687624-9090-117594287846334/source", "state": "file", "uid": 0 } TASK [Download the new configuration file] ************************************* Thursday 11 August 2022 19:48:10 +0000 (0:00:01.260) 0:00:07.984 ******* ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkluY2x1ZGUgL2V0Yy9zc2gvc3NoX2NvbmZpZy5kLyouY29uZgpMb2NhbEZvcndhcmQgMjIyMiBsb2NhbGhvc3Q6MjIK", "encoding": "base64", "source": "/tmp/ssh_config_with_defaults" } TASK [Check if the selected options are in] ************************************ Thursday 11 August 2022 19:48:11 +0000 (0:00:00.391) 0:00:08.375 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=13 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 11 August 2022 19:48:11 +0000 (0:00:00.082) 0:00:08.458 ******* =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.05s linux-system-roles.ssh : Ensure required packages are installed --------- 1.75s linux-system-roles.ssh : Generate the configuration file ---------------- 1.26s Gathering Facts --------------------------------------------------------- 1.08s Backup files ------------------------------------------------------------ 0.64s linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.46s Download the new configuration file ------------------------------------- 0.39s Create a temporary directory for backup files --------------------------- 0.37s Check if the selected options are in ------------------------------------ 0.08s linux-system-roles.ssh : Set platform/version specific variables -------- 0.08s Run role ---------------------------------------------------------------- 0.05s linux-system-roles.ssh : Set platform/version specific variables -------- 0.04s Backup configuration files ---------------------------------------------- 0.04s linux-system-roles.ssh : Gather information about the user for user configuration --- 0.04s linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.04s Setup ------------------------------------------------------------------- 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. ---^---^---^---^---^---