# 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_global_config.yml ********************************************** 1 plays in /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml PLAY [Test we can write global config with default configuration] ************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:2 Sunday 12 February 2023 04:42:24 +0000 (0:00:00.228) 0:00:00.228 ******* ok: [sut] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:11 Sunday 12 February 2023 04:42:37 +0000 (0:00:13.157) 0:00:13.385 ******* 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:38 +0000 (0:00:01.157) 0:00:14.543 ******* 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:40 +0000 (0:00:01.700) 0:00:16.244 ******* 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:42 +0000 (0:00:02.311) 0:00:18.555 ******* 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:54 +0000 (0:00:11.647) 0:00:30.203 ******* ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.4xx5sgod", "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:43:01 +0000 (0:00:07.553) 0:00:37.756 ******* 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.4xx5sgod/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.4xx5sgod/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.004072", "end": "2023-02-12 04:43:09.687702", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2023-02-12 04:43:09.683630" } 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.4xx5sgod/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.4xx5sgod/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.011611", "end": "2023-02-12 04:43:10.950081", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2023-02-12 04:43:10.938470" } TASK [Run role] **************************************************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:14 Sunday 12 February 2023 04:43:11 +0000 (0:00:09.921) 0:00:47.678 ******* 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:43:14 +0000 (0:00:02.166) 0:00:49.845 ******* 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:43:16 +0000 (0:00:02.285) 0:00:52.130 ******* 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:43:19 +0000 (0:00:03.143) 0:00:55.274 ******* 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:43:23 +0000 (0:00:04.197) 0:00:59.471 ******* 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:43:31 +0000 (0:00:08.190) 0:01:07.662 ******* 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:43:35 +0000 (0:00:03.564) 0:01:11.226 ******* 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:43:37 +0000 (0:00:02.041) 0:01:13.268 ******* changed: [sut] => { "changed": true, "checksum": "f38a8a96250e45899f48c98e601512d496860083", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "db0ebde88fc58af96a9426da8aab8059", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 279, "src": "/root/.ansible/tmp/ansible-tmp-1676177022.0318854-4449-162336068808083/source", "state": "file", "uid": 0 } TASK [Download the global configuration file] ********************************** task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:52 Sunday 12 February 2023 04:44:10 +0000 (0:00:32.826) 0:01:46.095 ******* ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpDb250cm9sTWFzdGVyIGF1dG8KQ29udHJvbFBhdGggfi8uc3NoLy5jbSVDCkZvcndhcmRYMTEgbm8KR1NTQVBJQXV0aGVudGljYXRpb24gbm8KTWF0Y2ggYWxsCiAgR1NTQVBJQXV0aGVudGljYXRpb24geWVzCk1hdGNoIGV4ZWMgdHJ1ZQogIFVzZXIgbm9ib2R5Ckhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQpIb3N0IGxvY2FsCiAgSG9zdG5hbWUgbG9jYWwuZXhhbXBsZS5jb20K", "encoding": "base64", "source": "/etc/ssh/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_global_config.yml:57 Sunday 12 February 2023 04:44:20 +0000 (0:00:10.594) 0:01:56.690 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify the defaults are not in the drop-in file] ************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:76 Sunday 12 February 2023 04:44:24 +0000 (0:00:04.061) 0:02:00.751 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:84 Sunday 12 February 2023 04:44:27 +0000 (0:00:02.221) 0:02:02.973 ******* 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:44:28 +0000 (0:00:01.246) 0:02:04.220 ******* ok: [sut] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.4xx5sgod//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.4xx5sgod//etc/ssh/ssh_config.d/00-ansible.conf $(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.005095", "end": "2023-02-12 04:44:31.428519", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2023-02-12 04:44:31.423424" } ok: [sut] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.4xx5sgod//etc/ssh/ssh_config; then\n cp /tmp/ansible.4xx5sgod//etc/ssh/ssh_config $(dirname /etc/ssh/ssh_config)\nelif test -f /etc/ssh/ssh_config; then\n rm /etc/ssh/ssh_config\nfi\n", "delta": "0:00:00.006886", "end": "2023-02-12 04:44:33.035251", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2023-02-12 04:44:33.028365" } 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:44:33 +0000 (0:00:05.212) 0:02:09.432 ******* ok: [sut] => { "changed": false, "path": "/tmp/ansible.4xx5sgod", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=17 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Sunday 12 February 2023 04:44:43 +0000 (0:00:09.639) 0:02:19.072 ******* =============================================================================== linux-system-roles.ssh : Generate the configuration file --------------- 32.83s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Gathering Facts -------------------------------------------------------- 13.16s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:2 ------ Make sure openssh is installed before creating backup ------------------ 11.65s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/setup.yml:7 -------------- Download the global configuration file --------------------------------- 10.59s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:52 ----- Backup files ------------------------------------------------------------ 9.92s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:13 ------------ Remove temporary directory for backup files ----------------------------- 9.64s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml:15 ----------- linux-system-roles.ssh : Ensure required packages are installed --------- 8.19s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Create a temporary directory for backup files --------------------------- 7.55s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:5 ------------- Restore backed up files and remove what was not present ----------------- 5.21s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/restore.yml:2 ------------ linux-system-roles.ssh : Set platform/version specific variables -------- 4.20s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Verify the options are in the file -------------------------------------- 4.06s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:57 ----- linux-system-roles.ssh : Gather information about the user for user configuration --- 3.56s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 3.05s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 linux-system-roles.ssh : Set platform/version specific variables -------- 2.37s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Ensure facts used by test ----------------------------------------------- 2.31s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/setup.yml:2 -------------- Verify the defaults are not in the drop-in file ------------------------- 2.22s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:76 ----- Run role ---------------------------------------------------------------- 2.17s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:14 ----- linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 2.04s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Setup ------------------------------------------------------------------- 1.70s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tasks/backup.yml:2 ------------- Restore configuration files --------------------------------------------- 1.25s /WORKDIR/dist-git-ssh-weekly-ci-mpuqd2gf/tests/tests_global_config.yml:84 ----- ---^---^---^---^---^--- # 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 ---^---^---^---^---^---