# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.13.6] 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.13/lib/python3.8/site-packages/ansible ansible collection location = /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection executable location = /opt/ansible-2.13/bin/ansible-playbook python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_custom_drop_in.yml ********************************************* 1 plays in /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/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-t1s300a1/tests/tests_custom_drop_in.yml:2 Sunday 29 January 2023 02:47:18 +0000 (0:00:00.409) 0:00:00.409 ******** ok: [sut] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:10 Sunday 29 January 2023 02:47:30 +0000 (0:00:12.566) 0:00:12.976 ******** META: end_host conditional evaluated to false, continuing execution for sut skipping: [sut] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for sut" } MSG: end_host conditional evaluated to false, continuing execution for sut TASK [Backup configuration files] ********************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:15 Sunday 29 January 2023 02:47:31 +0000 (0:00:01.010) 0:00:13.987 ******** included: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/backup.yml for sut TASK [Setup] ******************************************************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/backup.yml:2 Sunday 29 January 2023 02:47:33 +0000 (0:00:01.359) 0:00:15.346 ******** included: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/setup.yml for sut TASK [Ensure facts used by test] *********************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/setup.yml:2 Sunday 29 January 2023 02:47:34 +0000 (0:00:00.880) 0:00:16.227 ******** 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-t1s300a1/tests/tasks/setup.yml:7 Sunday 29 January 2023 02:47:35 +0000 (0:00:01.105) 0:00:17.332 ******** 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-t1s300a1/tests/tasks/backup.yml:5 Sunday 29 January 2023 02:47:52 +0000 (0:00:17.530) 0:00:34.862 ******** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.vaci_918", "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-t1s300a1/tests/tasks/backup.yml:13 Sunday 29 January 2023 02:48:04 +0000 (0:00:12.066) 0:00:46.929 ******** 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.vaci_918/$(dirname /tmp/ssh_config.d_00-ansible.conf);\n cp /tmp/ssh_config.d_00-ansible.conf /tmp/ansible.vaci_918/$(dirname /tmp/ssh_config.d_00-ansible.conf)\nfi\n", "delta": "0:00:00.004090", "end": "2023-01-29 02:48:16.946614", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2023-01-29 02:48:16.942524" } TASK [Run role] **************************************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:18 Sunday 29 January 2023 02:48:17 +0000 (0:00:12.844) 0:00:59.774 ******** TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Sunday 29 January 2023 02:48:20 +0000 (0:00:02.519) 0:01:02.293 ******** included: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Sunday 29 January 2023 02:48:21 +0000 (0:00:01.341) 0:01:03.634 ******** ok: [sut] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Sunday 29 January 2023 02:48:24 +0000 (0:00:03.350) 0:01:06.984 ******** 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-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [sut] => (item=RedHat_8.8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Sunday 29 January 2023 02:48:27 +0000 (0:00:02.365) 0:01:09.350 ******** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Sunday 29 January 2023 02:48:30 +0000 (0:00:02.875) 0:01:12.225 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Sunday 29 January 2023 02:48:32 +0000 (0:00:02.262) 0:01:14.487 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Sunday 29 January 2023 02:48:34 +0000 (0:00:01.854) 0:01:16.342 ******** 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-1674960516.256145-4461-197849900107505/source", "state": "file", "uid": 0 } META: role_complete for sut TASK [Download the custom configuration file drop-in] ************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:29 Sunday 29 January 2023 02:49:10 +0000 (0:00:35.986) 0:01:52.328 ******** 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-t1s300a1/tests/tests_custom_drop_in.yml:34 Sunday 29 January 2023 02:49:20 +0000 (0:00:10.581) 0:02:02.910 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:43 Sunday 29 January 2023 02:49:21 +0000 (0:00:00.860) 0:02:03.771 ******** included: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/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-t1s300a1/tests/tasks/restore.yml:2 Sunday 29 January 2023 02:49:22 +0000 (0:00:01.154) 0:02:04.925 ******** ok: [sut] => (item=/tmp/ssh_config.d_00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.vaci_918//tmp/ssh_config.d_00-ansible.conf; then\n cp /tmp/ansible.vaci_918//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.005282", "end": "2023-01-29 02:49:24.577515", "item": "/tmp/ssh_config.d_00-ansible.conf", "rc": 0, "start": "2023-01-29 02:49:24.572233" } TASK [Remove temporary directory for backup files] ***************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/restore.yml:15 Sunday 29 January 2023 02:49:25 +0000 (0:00:02.280) 0:02:07.205 ******** ok: [sut] => { "changed": false, "path": "/tmp/ansible.vaci_918", "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 29 January 2023 02:49:36 +0000 (0:00:11.653) 0:02:18.859 ******** =============================================================================== fedora.linux_system_roles.ssh : Generate the configuration file -------- 35.99s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Make sure openssh is installed before creating backup ------------------ 17.53s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/setup.yml:7 -------------- Backup files ----------------------------------------------------------- 12.84s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/backup.yml:13 ------------ Gathering Facts -------------------------------------------------------- 12.57s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:2 ----- Create a temporary directory for backup files -------------------------- 12.07s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/backup.yml:5 ------------- Remove temporary directory for backup files ---------------------------- 11.65s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/restore.yml:15 ----------- Download the custom configuration file drop-in ------------------------- 10.58s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:29 ---- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 3.35s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 fedora.linux_system_roles.ssh : Ensure required packages are installed --- 2.88s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Run role ---------------------------------------------------------------- 2.52s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:18 ---- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 2.37s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Restore backed up files and remove what was not present ----------------- 2.28s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/restore.yml:2 ------------ fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 2.26s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 1.85s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Backup configuration files ---------------------------------------------- 1.36s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:15 ---- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 1.34s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Restore configuration files --------------------------------------------- 1.15s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:43 ---- Ensure facts used by test ----------------------------------------------- 1.11s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/setup.yml:2 -------------- Skip if the system does not support drop in directory ------------------- 1.01s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tests_custom_drop_in.yml:10 ---- Setup ------------------------------------------------------------------- 0.88s /WORKDIR/dist-git-ssh-weekly-ci-t1s300a1/tests/tasks/backup.yml:2 ------------- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---