ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpkn11ymek executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml PLAY [Test forced creation of the configuration snippet in drop in directory] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:43:53 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:43:54 +0000 (0:00:01.134) 0:00:01.148 ********* included: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml for /cache/fedora-36.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:43:54 +0000 (0:00:00.025) 0:00:01.174 ********* included: /tmp/tmp_b_5f9t_/tests/tasks/setup.yml for /cache/fedora-36.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp_b_5f9t_/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:43:54 +0000 (0:00:00.042) 0:00:01.217 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp_b_5f9t_/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:43:54 +0000 (0:00:00.019) 0:00:01.236 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:43:56 +0000 (0:00:01.967) 0:00:03.204 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.7_gjgobs", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:43:57 +0000 (0:00:00.511) 0:00:03.715 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/99-last.conf; then\n mkdir -p /tmp/ansible.7_gjgobs/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.7_gjgobs/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.003737", "end": "2022-07-21 20:43:57.469685", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:43:57.465948" } ok: [/cache/fedora-36.qcow2.snap] => (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.7_gjgobs/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.7_gjgobs/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008945", "end": "2022-07-21 20:43:57.860402", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:43:57.851457" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:43:58 +0000 (0:00:00.937) 0:00:04.652 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:43:59 +0000 (0:00:00.808) 0:00:05.460 ********* included: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:43:59 +0000 (0:00:00.025) 0:00:05.485 ********* ok: [/cache/fedora-36.qcow2.snap] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:43:59 +0000 (0:00:00.557) 0:00:06.043 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-36.qcow2.snap] => (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": [ "/tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:43:59 +0000 (0:00:00.052) 0:00:06.095 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:44:01 +0000 (0:00:01.804) 0:00:07.900 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "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: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:44:01 +0000 (0:00:00.024) 0:00:07.925 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:44:01 +0000 (0:00:00.032) 0:00:07.957 ********* changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config.d/99-last.conf", "gid": 0, "group": "root", "md5sum": "df1b5553fea0fc8007bd9d80d983bbbe", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 98, "src": "/root/.ansible/tmp/ansible-tmp-1658436241.69528-65426-40406322199203/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-36.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:44:02 +0000 (0:00:01.207) 0:00:09.165 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:44:03 +0000 (0:00:00.814) 0:00:09.980 ********* META: end_host conditional evaluated to false, continuing execution for /cache/fedora-36.qcow2.snap skipping: [/cache/fedora-36.qcow2.snap] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/fedora-36.qcow2.snap" } MSG: end_host conditional evaluated to false, continuing execution for /cache/fedora-36.qcow2.snap TASK [Download the included configuration file] ******************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:40 Thursday 21 July 2022 20:44:03 +0000 (0:00:00.030) 0:00:10.011 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkdTU0FQSUF1dGhlbnRpY2F0aW9uIG5vCkhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/99-last.conf" } TASK [Stat the configuration file too] ***************************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:45 Thursday 21 July 2022 20:44:04 +0000 (0:00:00.536) 0:00:10.548 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "atime": 1658436243.7694771, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "ctime": 1658436242.3574772, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 35478, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1658436241.9224772, "nlink": 1, "path": "/etc/ssh/ssh_config.d/99-last.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 98, "uid": 0, "version": "43", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:51 Thursday 21 July 2022 20:44:04 +0000 (0:00:00.415) 0:00:10.963 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Download the main configuration file too] ******************************** task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:62 Thursday 21 July 2022 20:44:04 +0000 (0:00:00.078) 0:00:11.041 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "content": "IwkkT3BlbkJTRDogc3NoX2NvbmZpZyx2IDEuMzUgMjAyMC8wNy8xNyAwMzo0Mzo0MiBkdHVja2VyIEV4cCAkCgojIFRoaXMgaXMgdGhlIHNzaCBjbGllbnQgc3lzdGVtLXdpZGUgY29uZmlndXJhdGlvbiBmaWxlLiAgU2VlCiMgc3NoX2NvbmZpZyg1KSBmb3IgbW9yZSBpbmZvcm1hdGlvbi4gIFRoaXMgZmlsZSBwcm92aWRlcyBkZWZhdWx0cyBmb3IKIyB1c2VycywgYW5kIHRoZSB2YWx1ZXMgY2FuIGJlIGNoYW5nZWQgaW4gcGVyLXVzZXIgY29uZmlndXJhdGlvbiBmaWxlcwojIG9yIG9uIHRoZSBjb21tYW5kIGxpbmUuCgojIENvbmZpZ3VyYXRpb24gZGF0YSBpcyBwYXJzZWQgYXMgZm9sbG93czoKIyAgMS4gY29tbWFuZCBsaW5lIG9wdGlvbnMKIyAgMi4gdXNlci1zcGVjaWZpYyBmaWxlCiMgIDMuIHN5c3RlbS13aWRlIGZpbGUKIyBBbnkgY29uZmlndXJhdGlvbiB2YWx1ZSBpcyBvbmx5IGNoYW5nZWQgdGhlIGZpcnN0IHRpbWUgaXQgaXMgc2V0LgojIFRodXMsIGhvc3Qtc3BlY2lmaWMgZGVmaW5pdGlvbnMgc2hvdWxkIGJlIGF0IHRoZSBiZWdpbm5pbmcgb2YgdGhlCiMgY29uZmlndXJhdGlvbiBmaWxlLCBhbmQgZGVmYXVsdHMgYXQgdGhlIGVuZC4KCiMgU2l0ZS13aWRlIGRlZmF1bHRzIGZvciBzb21lIGNvbW1vbmx5IHVzZWQgb3B0aW9ucy4gIEZvciBhIGNvbXByZWhlbnNpdmUKIyBsaXN0IG9mIGF2YWlsYWJsZSBvcHRpb25zLCB0aGVpciBtZWFuaW5ncyBhbmQgZGVmYXVsdHMsIHBsZWFzZSBzZWUgdGhlCiMgc3NoX2NvbmZpZyg1KSBtYW4gcGFnZS4KCiMgSG9zdCAqCiMgICBGb3J3YXJkQWdlbnQgbm8KIyAgIEZvcndhcmRYMTEgbm8KIyAgIFBhc3N3b3JkQXV0aGVudGljYXRpb24geWVzCiMgICBIb3N0YmFzZWRBdXRoZW50aWNhdGlvbiBubwojICAgR1NTQVBJQXV0aGVudGljYXRpb24gbm8KIyAgIEdTU0FQSURlbGVnYXRlQ3JlZGVudGlhbHMgbm8KIyAgIEdTU0FQSUtleUV4Y2hhbmdlIG5vCiMgICBHU1NBUElUcnVzdEROUyBubwojICAgQmF0Y2hNb2RlIG5vCiMgICBDaGVja0hvc3RJUCB5ZXMKIyAgIEFkZHJlc3NGYW1pbHkgYW55CiMgICBDb25uZWN0VGltZW91dCAwCiMgICBTdHJpY3RIb3N0S2V5Q2hlY2tpbmcgYXNrCiMgICBJZGVudGl0eUZpbGUgfi8uc3NoL2lkX3JzYQojICAgSWRlbnRpdHlGaWxlIH4vLnNzaC9pZF9kc2EKIyAgIElkZW50aXR5RmlsZSB+Ly5zc2gvaWRfZWNkc2EKIyAgIElkZW50aXR5RmlsZSB+Ly5zc2gvaWRfZWQyNTUxOQojICAgUG9ydCAyMgojICAgQ2lwaGVycyBhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cixhZXMxMjgtY2JjLDNkZXMtY2JjCiMgICBNQUNzIGhtYWMtbWQ1LGhtYWMtc2hhMSx1bWFjLTY0QG9wZW5zc2guY29tCiMgICBFc2NhcGVDaGFyIH4KIyAgIFR1bm5lbCBubwojICAgVHVubmVsRGV2aWNlIGFueTphbnkKIyAgIFBlcm1pdExvY2FsQ29tbWFuZCBubwojICAgVmlzdWFsSG9zdEtleSBubwojICAgUHJveHlDb21tYW5kIHNzaCAtcSAtVyAlaDolcCBnYXRld2F5LmV4YW1wbGUuY29tCiMgICBSZWtleUxpbWl0IDFHIDFoCiMgICBVc2VyS25vd25Ib3N0c0ZpbGUgfi8uc3NoL2tub3duX2hvc3RzLmQvJWsKIwojIFRoaXMgc3lzdGVtIGlzIGZvbGxvd2luZyBzeXN0ZW0td2lkZSBjcnlwdG8gcG9saWN5LgojIFRvIG1vZGlmeSB0aGUgY3J5cHRvIHByb3BlcnRpZXMgKENpcGhlcnMsIE1BQ3MsIC4uLiksIGNyZWF0ZSBhICAqLmNvbmYKIyAgZmlsZSB1bmRlciAgL2V0Yy9zc2gvc3NoX2NvbmZpZy5kLyAgd2hpY2ggd2lsbCBiZSBhdXRvbWF0aWNhbGx5CiMgaW5jbHVkZWQgYmVsb3cuIEZvciBtb3JlIGluZm9ybWF0aW9uLCBzZWUgbWFudWFsIHBhZ2UgZm9yCiMgIHVwZGF0ZS1jcnlwdG8tcG9saWNpZXMoOCkgIGFuZCAgc3NoX2NvbmZpZyg1KS4KSW5jbHVkZSAvZXRjL3NzaC9zc2hfY29uZmlnLmQvKi5jb25mCg==", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are NOT in the global configuration file] ************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:67 Thursday 21 July 2022 20:44:05 +0000 (0:00:00.396) 0:00:11.438 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the file has default sensible permissions] ************************ task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:76 Thursday 21 July 2022 20:44:05 +0000 (0:00:00.035) 0:00:11.474 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:84 Thursday 21 July 2022 20:44:05 +0000 (0:00:00.083) 0:00:11.557 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:90 Thursday 21 July 2022 20:44:06 +0000 (0:00:00.852) 0:00:12.410 ********* included: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml for /cache/fedora-36.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:44:06 +0000 (0:00:00.027) 0:00:12.438 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.7_gjgobs//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.7_gjgobs//etc/ssh/ssh_config.d/99-last.conf $(dirname /etc/ssh/ssh_config.d/99-last.conf)\nelif test -f /etc/ssh/ssh_config.d/99-last.conf; then\n rm /etc/ssh/ssh_config.d/99-last.conf\nfi\n", "delta": "0:00:00.005074", "end": "2022-07-21 20:44:06.096864", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:44:06.091790" } ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.7_gjgobs//etc/ssh/ssh_config; then\n cp /tmp/ansible.7_gjgobs//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.007810", "end": "2022-07-21 20:44:06.489177", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:44:06.481367" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:44:06 +0000 (0:00:00.832) 0:00:13.270 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.7_gjgobs", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=23 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:44:07 +0000 (0:00:00.527) 0:00:13.797 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.97s /tmp/tmp_b_5f9t_/tests/tasks/setup.yml:7 -------------------------------------- linux-system-roles.ssh : Ensure required packages are installed --------- 1.80s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.21s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:2 ------------------------ Backup files ------------------------------------------------------------ 0.94s /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:84 ----------------------- Restore backed up files and remove what was not present ----------------- 0.83s /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:2 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:27 ----------------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:14 ----------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.56s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ Download the included configuration file -------------------------------- 0.54s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:40 ----------------------- Remove temporary directory for backup files ----------------------------- 0.53s /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:15 ----------------------------------- Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:5 ------------------------------------- Stat the configuration file too ----------------------------------------- 0.42s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:45 ----------------------- Download the main configuration file too -------------------------------- 0.40s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:62 ----------------------- Verify the file has default sensible permissions ------------------------ 0.08s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:76 ----------------------- Verify the options are in the file -------------------------------------- 0.08s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:51 ----------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Setup ------------------------------------------------------------------- 0.04s /tmp/tmp_b_5f9t_/tests/tasks/backup.yml:2 ------------------------------------- Verify the options are NOT in the global configuration file ------------- 0.04s /tmp/tmp_b_5f9t_/tests/tests_global_drop_in_role.yml:67 ----------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpkn11ymek executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml PLAY [Test forced creation of the configuration snippet in drop in directory] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:46:47 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:46:48 +0000 (0:00:01.154) 0:00:01.167 ********* included: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml for /cache/fedora-36.qcow2.snap TASK [Setup] ******************************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:46:48 +0000 (0:00:00.048) 0:00:01.216 ********* included: /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml for /cache/fedora-36.qcow2.snap TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:46:48 +0000 (0:00:00.025) 0:00:01.242 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:46:48 +0000 (0:00:00.021) 0:00:01.264 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:46:50 +0000 (0:00:01.869) 0:00:03.133 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.qolb9cnp", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:46:51 +0000 (0:00:00.513) 0:00:03.646 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/99-last.conf; then\n mkdir -p /tmp/ansible.qolb9cnp/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.qolb9cnp/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.004109", "end": "2022-07-21 20:46:50.719897", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:46:50.715788" } ok: [/cache/fedora-36.qcow2.snap] => (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.qolb9cnp/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.qolb9cnp/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.010409", "end": "2022-07-21 20:46:51.118227", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:46:51.107818" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:46:52 +0000 (0:00:00.960) 0:00:04.607 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:46:52 +0000 (0:00:00.808) 0:00:05.415 ********* included: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:46:52 +0000 (0:00:00.027) 0:00:05.442 ********* ok: [/cache/fedora-36.qcow2.snap] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:46:53 +0000 (0:00:00.534) 0:00:05.977 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/fedora-36.qcow2.snap] => (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": [ "/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:46:53 +0000 (0:00:00.052) 0:00:06.029 ********* ok: [/cache/fedora-36.qcow2.snap] => { "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: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:46:55 +0000 (0:00:01.811) 0:00:07.840 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "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: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:46:55 +0000 (0:00:00.029) 0:00:07.870 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:46:55 +0000 (0:00:00.025) 0:00:07.896 ********* changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config.d/99-last.conf", "gid": 0, "group": "root", "md5sum": "df1b5553fea0fc8007bd9d80d983bbbe", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 98, "src": "/root/.ansible/tmp/ansible-tmp-1658436415.4605024-68796-144100774352011/source", "state": "file", "uid": 0 } META: role_complete for /cache/fedora-36.qcow2.snap META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:46:56 +0000 (0:00:01.186) 0:00:09.083 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:46:57 +0000 (0:00:00.800) 0:00:09.884 ********* META: end_host conditional evaluated to false, continuing execution for /cache/fedora-36.qcow2.snap skipping: [/cache/fedora-36.qcow2.snap] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for /cache/fedora-36.qcow2.snap" } MSG: end_host conditional evaluated to false, continuing execution for /cache/fedora-36.qcow2.snap TASK [Download the included configuration file] ******************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:38 Thursday 21 July 2022 20:46:57 +0000 (0:00:00.031) 0:00:09.915 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkdTU0FQSUF1dGhlbnRpY2F0aW9uIG5vCkhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCiAgVXNlciBzb21lYm9keQo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/99-last.conf" } TASK [Stat the configuration file too] ***************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:43 Thursday 21 July 2022 20:46:57 +0000 (0:00:00.504) 0:00:10.420 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "atime": 1658436416.9549248, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "ctime": 1658436415.584925, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 35478, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1658436415.150925, "nlink": 1, "path": "/etc/ssh/ssh_config.d/99-last.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 98, "uid": 0, "version": "43", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify the options are in the file] ************************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:48 Thursday 21 July 2022 20:46:58 +0000 (0:00:00.404) 0:00:10.824 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Download the main configuration file too] ******************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:59 Thursday 21 July 2022 20:46:58 +0000 (0:00:00.039) 0:00:10.864 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "content": "IwkkT3BlbkJTRDogc3NoX2NvbmZpZyx2IDEuMzUgMjAyMC8wNy8xNyAwMzo0Mzo0MiBkdHVja2VyIEV4cCAkCgojIFRoaXMgaXMgdGhlIHNzaCBjbGllbnQgc3lzdGVtLXdpZGUgY29uZmlndXJhdGlvbiBmaWxlLiAgU2VlCiMgc3NoX2NvbmZpZyg1KSBmb3IgbW9yZSBpbmZvcm1hdGlvbi4gIFRoaXMgZmlsZSBwcm92aWRlcyBkZWZhdWx0cyBmb3IKIyB1c2VycywgYW5kIHRoZSB2YWx1ZXMgY2FuIGJlIGNoYW5nZWQgaW4gcGVyLXVzZXIgY29uZmlndXJhdGlvbiBmaWxlcwojIG9yIG9uIHRoZSBjb21tYW5kIGxpbmUuCgojIENvbmZpZ3VyYXRpb24gZGF0YSBpcyBwYXJzZWQgYXMgZm9sbG93czoKIyAgMS4gY29tbWFuZCBsaW5lIG9wdGlvbnMKIyAgMi4gdXNlci1zcGVjaWZpYyBmaWxlCiMgIDMuIHN5c3RlbS13aWRlIGZpbGUKIyBBbnkgY29uZmlndXJhdGlvbiB2YWx1ZSBpcyBvbmx5IGNoYW5nZWQgdGhlIGZpcnN0IHRpbWUgaXQgaXMgc2V0LgojIFRodXMsIGhvc3Qtc3BlY2lmaWMgZGVmaW5pdGlvbnMgc2hvdWxkIGJlIGF0IHRoZSBiZWdpbm5pbmcgb2YgdGhlCiMgY29uZmlndXJhdGlvbiBmaWxlLCBhbmQgZGVmYXVsdHMgYXQgdGhlIGVuZC4KCiMgU2l0ZS13aWRlIGRlZmF1bHRzIGZvciBzb21lIGNvbW1vbmx5IHVzZWQgb3B0aW9ucy4gIEZvciBhIGNvbXByZWhlbnNpdmUKIyBsaXN0IG9mIGF2YWlsYWJsZSBvcHRpb25zLCB0aGVpciBtZWFuaW5ncyBhbmQgZGVmYXVsdHMsIHBsZWFzZSBzZWUgdGhlCiMgc3NoX2NvbmZpZyg1KSBtYW4gcGFnZS4KCiMgSG9zdCAqCiMgICBGb3J3YXJkQWdlbnQgbm8KIyAgIEZvcndhcmRYMTEgbm8KIyAgIFBhc3N3b3JkQXV0aGVudGljYXRpb24geWVzCiMgICBIb3N0YmFzZWRBdXRoZW50aWNhdGlvbiBubwojICAgR1NTQVBJQXV0aGVudGljYXRpb24gbm8KIyAgIEdTU0FQSURlbGVnYXRlQ3JlZGVudGlhbHMgbm8KIyAgIEdTU0FQSUtleUV4Y2hhbmdlIG5vCiMgICBHU1NBUElUcnVzdEROUyBubwojICAgQmF0Y2hNb2RlIG5vCiMgICBDaGVja0hvc3RJUCB5ZXMKIyAgIEFkZHJlc3NGYW1pbHkgYW55CiMgICBDb25uZWN0VGltZW91dCAwCiMgICBTdHJpY3RIb3N0S2V5Q2hlY2tpbmcgYXNrCiMgICBJZGVudGl0eUZpbGUgfi8uc3NoL2lkX3JzYQojICAgSWRlbnRpdHlGaWxlIH4vLnNzaC9pZF9kc2EKIyAgIElkZW50aXR5RmlsZSB+Ly5zc2gvaWRfZWNkc2EKIyAgIElkZW50aXR5RmlsZSB+Ly5zc2gvaWRfZWQyNTUxOQojICAgUG9ydCAyMgojICAgQ2lwaGVycyBhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cixhZXMxMjgtY2JjLDNkZXMtY2JjCiMgICBNQUNzIGhtYWMtbWQ1LGhtYWMtc2hhMSx1bWFjLTY0QG9wZW5zc2guY29tCiMgICBFc2NhcGVDaGFyIH4KIyAgIFR1bm5lbCBubwojICAgVHVubmVsRGV2aWNlIGFueTphbnkKIyAgIFBlcm1pdExvY2FsQ29tbWFuZCBubwojICAgVmlzdWFsSG9zdEtleSBubwojICAgUHJveHlDb21tYW5kIHNzaCAtcSAtVyAlaDolcCBnYXRld2F5LmV4YW1wbGUuY29tCiMgICBSZWtleUxpbWl0IDFHIDFoCiMgICBVc2VyS25vd25Ib3N0c0ZpbGUgfi8uc3NoL2tub3duX2hvc3RzLmQvJWsKIwojIFRoaXMgc3lzdGVtIGlzIGZvbGxvd2luZyBzeXN0ZW0td2lkZSBjcnlwdG8gcG9saWN5LgojIFRvIG1vZGlmeSB0aGUgY3J5cHRvIHByb3BlcnRpZXMgKENpcGhlcnMsIE1BQ3MsIC4uLiksIGNyZWF0ZSBhICAqLmNvbmYKIyAgZmlsZSB1bmRlciAgL2V0Yy9zc2gvc3NoX2NvbmZpZy5kLyAgd2hpY2ggd2lsbCBiZSBhdXRvbWF0aWNhbGx5CiMgaW5jbHVkZWQgYmVsb3cuIEZvciBtb3JlIGluZm9ybWF0aW9uLCBzZWUgbWFudWFsIHBhZ2UgZm9yCiMgIHVwZGF0ZS1jcnlwdG8tcG9saWNpZXMoOCkgIGFuZCAgc3NoX2NvbmZpZyg1KS4KSW5jbHVkZSAvZXRjL3NzaC9zc2hfY29uZmlnLmQvKi5jb25mCg==", "encoding": "base64", "source": "/etc/ssh/ssh_config" } TASK [Verify the options are NOT in the global configuration file] ************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:64 Thursday 21 July 2022 20:46:58 +0000 (0:00:00.383) 0:00:11.247 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify the file has default sensible permissions] ************************ task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:73 Thursday 21 July 2022 20:46:58 +0000 (0:00:00.062) 0:00:11.310 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:81 Thursday 21 July 2022 20:46:58 +0000 (0:00:00.051) 0:00:11.361 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:87 Thursday 21 July 2022 20:46:59 +0000 (0:00:00.858) 0:00:12.220 ********* included: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml for /cache/fedora-36.qcow2.snap TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:46:59 +0000 (0:00:00.026) 0:00:12.247 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.qolb9cnp//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.qolb9cnp//etc/ssh/ssh_config.d/99-last.conf $(dirname /etc/ssh/ssh_config.d/99-last.conf)\nelif test -f /etc/ssh/ssh_config.d/99-last.conf; then\n rm /etc/ssh/ssh_config.d/99-last.conf\nfi\n", "delta": "0:00:00.004682", "end": "2022-07-21 20:46:59.194215", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 20:46:59.189533" } ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.qolb9cnp//etc/ssh/ssh_config; then\n cp /tmp/ansible.qolb9cnp//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.006554", "end": "2022-07-21 20:46:59.568454", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 20:46:59.561900" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:47:00 +0000 (0:00:00.791) 0:00:13.038 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "path": "/tmp/ansible.qolb9cnp", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=23 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:47:01 +0000 (0:00:00.517) 0:00:13.555 ********* =============================================================================== Make sure openssh is installed before creating backup ------------------- 1.87s /tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:7 ---------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.81s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.19s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 1.15s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:2 -------------------- Backup files ------------------------------------------------------------ 0.96s /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:81 ------------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:14 ------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:27 ------------------- Restore backed up files and remove what was not present ----------------- 0.79s /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.53s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.52s /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:15 ------------------------------- Create a temporary directory for backup files --------------------------- 0.51s /tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:5 --------------------------------- Download the included configuration file -------------------------------- 0.50s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:38 ------------------- Stat the configuration file too ----------------------------------------- 0.40s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:43 ------------------- Download the main configuration file too -------------------------------- 0.38s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:59 ------------------- Verify the options are NOT in the global configuration file ------------- 0.06s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:64 ------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Verify the file has default sensible permissions ------------------------ 0.05s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:73 ------------------- Backup configuration files ---------------------------------------------- 0.05s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:11 ------------------- Verify the options are in the file -------------------------------------- 0.04s /tmp/tmp7s9fngkn/tests/ssh/tests_global_drop_in_role.yml:48 -------------------