# 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, Oct 26 2022, 09:13:21) [GCC 8.5.0 20210514 (Red Hat 8.5.0-17)] 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-weekly-ci-mpuqd2gf/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-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:2 Sunday 12 February 2023 04:42:05 +0000 (0:00:00.422) 0:00:00.422 ******* 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-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:17 Sunday 12 February 2023 04:42:13 +0000 (0:00:08.165) 0:00:08.587 ******* included: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml for sut TASK [Setup] ******************************************************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:2 Sunday 12 February 2023 04:42:14 +0000 (0:00:00.900) 0:00:09.488 ******* included: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/setup.yml for sut TASK [Ensure facts used by test] *********************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/setup.yml:2 Sunday 12 February 2023 04:42:15 +0000 (0:00:01.002) 0:00:10.491 ******* 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-weekly-ci-mpuqd2gf/tests/tasks/setup.yml:7 Sunday 12 February 2023 04:42:16 +0000 (0:00:00.828) 0:00:11.319 ******* 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-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:5 Sunday 12 February 2023 04:42:23 +0000 (0:00:07.273) 0:00:18.593 ******* ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.0hqx49gn", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:13 Sunday 12 February 2023 04:42:29 +0000 (0:00:06.167) 0:00:24.760 ******* 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.0hqx49gn/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.0hqx49gn/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.003696", "end": "2023-02-12 04:42:38.259949", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2023-02-12 04:42:38.256253" } TASK [Run role] **************************************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:20 Sunday 12 February 2023 04:42:39 +0000 (0:00:09.145) 0:00:33.905 ******* TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Sunday 12 February 2023 04:42:40 +0000 (0:00:01.880) 0:00:35.786 ******* included: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/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-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Sunday 12 February 2023 04:42:42 +0000 (0:00:01.051) 0:00:36.837 ******* ok: [sut] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Sunday 12 February 2023 04:42:46 +0000 (0:00:04.533) 0:00:41.370 ******* 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-weekly-ci-mpuqd2gf/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.2.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.2.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Sunday 12 February 2023 04:42:48 +0000 (0:00:01.771) 0:00:43.142 ******* 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-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Sunday 12 February 2023 04:42:55 +0000 (0:00:07.627) 0:00:50.769 ******* 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-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Sunday 12 February 2023 04:42:57 +0000 (0:00:01.471) 0:00:52.241 ******* 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-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Sunday 12 February 2023 04:42:59 +0000 (0:00:02.109) 0:00:54.351 ******* 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-1676176981.7286026-4401-73414760663016/source", "state": "file", "uid": 0 } TASK [Download the custom configuration file drop-in] ************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:31 Sunday 12 February 2023 04:43:31 +0000 (0:00:31.969) 0:01:26.320 ******* 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-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:36 Sunday 12 February 2023 04:43:41 +0000 (0:00:09.758) 0:01:36.079 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:45 Sunday 12 February 2023 04:43:43 +0000 (0:00:02.659) 0:01:38.739 ******* included: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml for sut TASK [Restore backed up files and remove what was not present] ***************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml:2 Sunday 12 February 2023 04:43:44 +0000 (0:00:00.846) 0:01:39.585 ******* ok: [sut] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.0hqx49gn//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.0hqx49gn//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.004734", "end": "2023-02-12 04:43:46.979510", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2023-02-12 04:43:46.974776" } TASK [Remove temporary directory for backup files] ***************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml:15 Sunday 12 February 2023 04:43:47 +0000 (0:00:03.081) 0:01:42.667 ******* ok: [sut] => { "changed": false, "path": "/tmp/ansible.0hqx49gn", "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 Sunday 12 February 2023 04:43:58 +0000 (0:00:10.294) 0:01:52.962 ******* =============================================================================== linux-system-roles.ssh : Generate the configuration file --------------- 31.97s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Remove temporary directory for backup files ---------------------------- 10.29s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml:15 ----------- Download the custom configuration file drop-in -------------------------- 9.76s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:31 ---- Backup files ------------------------------------------------------------ 9.15s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:13 ------------ Gathering Facts --------------------------------------------------------- 8.17s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:2 ----- linux-system-roles.ssh : Ensure required packages are installed --------- 7.63s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Make sure openssh is installed before creating backup ------------------- 7.27s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/setup.yml:7 -------------- Create a temporary directory for backup files --------------------------- 6.17s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:5 ------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 4.53s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Restore backed up files and remove what was not present ----------------- 3.08s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml:2 ------------ Verify the options are in the file -------------------------------------- 2.66s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:36 ---- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 2.11s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Run role ---------------------------------------------------------------- 1.88s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:20 ---- linux-system-roles.ssh : Set platform/version specific variables -------- 1.77s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 linux-system-roles.ssh : Gather information about the user for user configuration --- 1.47s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 linux-system-roles.ssh : Set platform/version specific variables -------- 1.05s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Setup ------------------------------------------------------------------- 1.00s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:2 ------------- Backup configuration files ---------------------------------------------- 0.90s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:17 ---- Restore configuration files --------------------------------------------- 0.85s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_custom_drop_in.yml:45 ---- Ensure facts used by test ----------------------------------------------- 0.83s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/setup.yml:2 -------------- ---^---^---^---^---^--- # 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 ---^---^---^---^---^---