# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.6/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.6.8 (default, Jun 23 2022, 19:01:59) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml PLAY [Test we can write any other configuration file as a drop-in] ************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:2 Monday 26 September 2022 14:06:01 +0000 (0:00:00.039) 0:00:00.039 ****** ok: [sut] META: ran handlers META: end_host conditional evaluated to false, continuing execution for sut TASK [Backup configuration files] ********************************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:17 Monday 26 September 2022 14:06:02 +0000 (0:00:01.068) 0:00:01.108 ****** included: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml for sut TASK [Setup] ******************************************************************* task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml:2 Monday 26 September 2022 14:06:02 +0000 (0:00:00.034) 0:00:01.142 ****** included: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/setup.yml for sut TASK [Ensure facts used by test] *********************************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/setup.yml:2 Monday 26 September 2022 14:06:02 +0000 (0:00:00.052) 0:00:01.195 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/setup.yml:7 Monday 26 September 2022 14:06:02 +0000 (0:00:00.050) 0:00:01.245 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml:5 Monday 26 September 2022 14:06:05 +0000 (0:00:03.086) 0:00:04.333 ****** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.49uptos9", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml:13 Monday 26 September 2022 14:06:06 +0000 (0:00:00.731) 0:00:05.064 ****** ok: [sut] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ssh_config.d_00-ansible.conf; then\n mkdir -p /tmp/ansible.49uptos9/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.49uptos9/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.004136", "end": "2022-09-26 14:06:06.561453", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-09-26 14:06:06.557317" } TASK [Run role] **************************************************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:20 Monday 26 September 2022 14:06:06 +0000 (0:00:00.416) 0:00:05.480 ****** TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Monday 26 September 2022 14:06:06 +0000 (0:00:00.065) 0:00:05.545 ****** included: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for sut TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Monday 26 September 2022 14:06:06 +0000 (0:00:00.060) 0:00:05.605 ****** ok: [sut] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Monday 26 September 2022 14:06:07 +0000 (0:00:00.458) 0:00:06.064 ****** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=Fedora.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-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Monday 26 September 2022 14:06:07 +0000 (0:00:00.074) 0:00:06.139 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Monday 26 September 2022 14:06:10 +0000 (0:00:02.737) 0:00:08.876 ****** 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] *** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Monday 26 September 2022 14:06:10 +0000 (0:00:00.033) 0:00:08.910 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Monday 26 September 2022 14:06:10 +0000 (0:00:00.027) 0:00:08.938 ****** changed: [sut] => { "changed": true, "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b", "dest": "/tmp/ssh_config.d_00-ansible.conf", "gid": 0, "group": "root", "md5sum": "2f19240ad6e71480c76da5718e2aa100", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 62, "src": "/root/.ansible/tmp/ansible-tmp-1664201170.1393802-4368-212076087850418/source", "state": "file", "uid": 0 } TASK [Download the custom configuration file drop-in] ************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:31 Monday 26 September 2022 14:06:11 +0000 (0:00:01.321) 0:00:10.259 ****** ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=", "encoding": "base64", "source": "/tmp/ssh_config.d_00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:36 Monday 26 September 2022 14:06:11 +0000 (0:00:00.391) 0:00:10.650 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:45 Monday 26 September 2022 14:06:11 +0000 (0:00:00.038) 0:00:10.689 ****** included: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/restore.yml for sut TASK [Restore backed up files and remove what was not present] ***************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/restore.yml:2 Monday 26 September 2022 14:06:11 +0000 (0:00:00.032) 0:00:10.721 ****** ok: [sut] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.49uptos9//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.49uptos9//tmp/ssh_config.d_00-ansible.conf $(dirname /tmp/ssh_config.d_00-ansible.conf)\nelif test -f /tmp/ssh_config.d_00-ansible.conf; then\n rm /tmp/ssh_config.d_00-ansible.conf\nfi\n", "delta": "0:00:00.005152", "end": "2022-09-26 14:06:12.093399", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2022-09-26 14:06:12.088247" } TASK [Remove temporary directory for backup files] ***************************** task path: /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/restore.yml:15 Monday 26 September 2022 14:06:12 +0000 (0:00:00.275) 0:00:10.997 ****** ok: [sut] => { "changed": false, "path": "/tmp/ansible.49uptos9", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=16 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Monday 26 September 2022 14:06:12 +0000 (0:00:00.392) 0:00:11.390 ****** =============================================================================== Make sure openssh is installed before creating backup ------------------- 3.09s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/setup.yml:7 ---------- linux-system-roles.ssh : Ensure required packages are installed --------- 2.74s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 linux-system-roles.ssh : Generate the configuration file ---------------- 1.32s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.07s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:2 - Create a temporary directory for backup files --------------------------- 0.73s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml:5 --------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.46s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Backup files ------------------------------------------------------------ 0.42s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml:13 -------- Remove temporary directory for backup files ----------------------------- 0.39s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/restore.yml:15 ------- Download the custom configuration file drop-in -------------------------- 0.39s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:31 Restore backed up files and remove what was not present ----------------- 0.28s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/restore.yml:2 -------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.07s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Run role ---------------------------------------------------------------- 0.07s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:20 linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Setup ------------------------------------------------------------------- 0.05s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/backup.yml:2 --------- Ensure facts used by test ----------------------------------------------- 0.05s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tasks/setup.yml:2 ---------- Verify the options are in the file -------------------------------------- 0.04s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:36 Backup configuration files ---------------------------------------------- 0.03s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:17 linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Restore configuration files --------------------------------------------- 0.03s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/tests_custom_drop_in.yml:45 linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /WORKDIR/dist-git-ssh-requiredrsasize-r_KA3U/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---