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/tmp0677phw8 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: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Thursday 21 July 2022 20:08:41 +0000 (0:00:00.017) 0:00:00.017 ********* ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:08:42 +0000 (0:00:01.347) 0:00:01.365 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmpwdhrsu3c/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/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:08:42 +0000 (0:00:00.035) 0:00:01.400 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:08:43 +0000 (0:00:00.918) 0:00:02.319 ********* included: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml for /cache/rhel-7.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:2 Thursday 21 July 2022 20:08:43 +0000 (0:00:00.024) 0:00:02.343 ********* included: /tmp/tmpwdhrsu3c/tests/tasks/setup.yml for /cache/rhel-7.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpwdhrsu3c/tests/tasks/setup.yml:2 Thursday 21 July 2022 20:08:43 +0000 (0:00:00.025) 0:00:02.369 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpwdhrsu3c/tests/tasks/setup.yml:7 Thursday 21 July 2022 20:08:43 +0000 (0:00:00.021) 0:00:02.390 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:5 Thursday 21 July 2022 20:08:44 +0000 (0:00:00.649) 0:00:03.040 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.TYMIAc", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:13 Thursday 21 July 2022 20:08:45 +0000 (0:00:00.420) 0:00:03.460 ********* ok: [/cache/rhel-7.qcow2] => (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.TYMIAc/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.TYMIAc/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.003941", "end": "2022-07-21 16:08:45.741572", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 16:08:45.737631" } ok: [/cache/rhel-7.qcow2] => (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.TYMIAc/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.TYMIAc/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.009035", "end": "2022-07-21 16:08:46.021984", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:08:46.012949" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:08:45 +0000 (0:00:00.734) 0:00:04.194 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 21 July 2022 20:08:46 +0000 (0:00:00.702) 0:00:04.897 ********* included: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:08:46 +0000 (0:00:00.026) 0:00:04.923 ********* ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 Thursday 21 July 2022 20:08:46 +0000 (0:00:00.395) 0:00:05.319 ********* skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-7.qcow2] => (item=RedHat_7.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } } }, "ansible_included_var_files": [ "/tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 21 July 2022 20:08:46 +0000 (0:00:00.051) 0:00:05.371 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "openssh-7.4p1-22.el7_9.x86_64 providing openssh is already installed", "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 Thursday 21 July 2022 20:08:47 +0000 (0:00:00.493) 0:00:05.864 ********* skipping: [/cache/rhel-7.qcow2] => { "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/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:17 Thursday 21 July 2022 20:08:47 +0000 (0:00:00.026) 0:00:05.890 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 Thursday 21 July 2022 20:08:47 +0000 (0:00:00.024) 0:00:05.915 ********* changed: [/cache/rhel-7.qcow2] => { "backup_file": "/etc/ssh/ssh_config.13663.2022-07-21@16:08:48~", "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config", "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-1658434127.572261-27250-78678838175563/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-7.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:08:48 +0000 (0:00:01.008) 0:00:06.923 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:08:49 +0000 (0:00:00.675) 0:00:07.598 ********* META: ending play for /cache/rhel-7.qcow2 PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:84 Thursday 21 July 2022 20:08:49 +0000 (0:00:00.035) 0:00:07.634 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:90 Thursday 21 July 2022 20:08:49 +0000 (0:00:00.683) 0:00:08.317 ********* included: /tmp/tmpwdhrsu3c/tests/tasks/restore.yml for /cache/rhel-7.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:2 Thursday 21 July 2022 20:08:49 +0000 (0:00:00.026) 0:00:08.343 ********* ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.TYMIAc//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.TYMIAc//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.003885", "end": "2022-07-21 16:08:50.528957", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 16:08:50.525072" } ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.TYMIAc//etc/ssh/ssh_config; then\n cp /tmp/ansible.TYMIAc//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.006661", "end": "2022-07-21 16:08:50.806812", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:08:50.800151" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:15 Thursday 21 July 2022 20:08:50 +0000 (0:00:00.620) 0:00:08.964 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "path": "/tmp/ansible.TYMIAc", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=18 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:08:50 +0000 (0:00:00.430) 0:00:09.394 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- linux-system-roles.ssh : Generate the configuration file ---------------- 1.01s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 --------- Gathering Facts --------------------------------------------------------- 0.92s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:2 ------------------------ Backup files ------------------------------------------------------------ 0.73s /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:13 ------------------------------------ Gathering Facts --------------------------------------------------------- 0.70s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:14 ----------------------- Gathering Facts --------------------------------------------------------- 0.68s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:84 ----------------------- Gathering Facts --------------------------------------------------------- 0.68s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:27 ----------------------- Make sure openssh is installed before creating backup ------------------- 0.65s /tmp/tmpwdhrsu3c/tests/tasks/setup.yml:7 -------------------------------------- Restore backed up files and remove what was not present ----------------- 0.62s /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:2 ------------------------------------ linux-system-roles.ssh : Ensure required packages are installed --------- 0.49s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ---------- Remove temporary directory for backup files ----------------------------- 0.43s /tmp/tmpwdhrsu3c/tests/tasks/restore.yml:15 ----------------------------------- Create a temporary directory for backup files --------------------------- 0.42s /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:5 ------------------------------------- linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.40s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------ Skip if the system does not support drop in directory ------------------- 0.04s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:29 ----------------------- linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ---------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:90 ----------------------- linux-system-roles.ssh : Gather information about the user for user configuration --- 0.03s /tmp/tmpwdhrsu3c/tests/roles/linux-system-roles.ssh/tasks/main.yml:10 --------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpwdhrsu3c/tests/tasks/backup.yml:2 ------------------------------------- Backup configuration files ---------------------------------------------- 0.02s /tmp/tmpwdhrsu3c/tests/tests_global_drop_in_role.yml:11 ----------------------- 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/tmp0677phw8 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: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Thursday 21 July 2022 20:10:53 +0000 (0:00:00.016) 0:00:00.016 ********* ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 21 July 2022 20:10:55 +0000 (0:00:01.404) 0:00:01.420 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_global_drop_in_role.yml **************************************** 4 plays in /tmp/tmpxz37r5cb/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/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:2 Thursday 21 July 2022 20:10:55 +0000 (0:00:00.021) 0:00:01.442 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:11 Thursday 21 July 2022 20:10:56 +0000 (0:00:00.927) 0:00:02.369 ********* included: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml for /cache/rhel-7.qcow2 TASK [Setup] ******************************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:2 Thursday 21 July 2022 20:10:56 +0000 (0:00:00.026) 0:00:02.395 ********* included: /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml for /cache/rhel-7.qcow2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:2 Thursday 21 July 2022 20:10:56 +0000 (0:00:00.025) 0:00:02.421 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:7 Thursday 21 July 2022 20:10:56 +0000 (0:00:00.021) 0:00:02.442 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:5 Thursday 21 July 2022 20:10:56 +0000 (0:00:00.658) 0:00:03.101 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.fPDCAs", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:13 Thursday 21 July 2022 20:10:57 +0000 (0:00:00.414) 0:00:03.515 ********* ok: [/cache/rhel-7.qcow2] => (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.fPDCAs/$(dirname /etc/ssh/ssh_config.d/99-last.conf);\n cp /etc/ssh/ssh_config.d/99-last.conf /tmp/ansible.fPDCAs/$(dirname /etc/ssh/ssh_config.d/99-last.conf)\nfi\n", "delta": "0:00:00.003864", "end": "2022-07-21 16:10:57.715121", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 16:10:57.711257" } ok: [/cache/rhel-7.qcow2] => (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.fPDCAs/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.fPDCAs/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.009130", "end": "2022-07-21 16:10:58.002659", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:10:57.993529" } META: ran handlers META: ran handlers PLAY [Run role] **************************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:14 Thursday 21 July 2022 20:10:57 +0000 (0:00:00.747) 0:00:04.263 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Thursday 21 July 2022 20:10:58 +0000 (0:00:00.691) 0:00:04.955 ********* included: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Thursday 21 July 2022 20:10:58 +0000 (0:00:00.027) 0:00:04.983 ********* ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Thursday 21 July 2022 20:10:59 +0000 (0:00:00.405) 0:00:05.389 ********* skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-7.qcow2] => (item=RedHat_7.yml) => { "ansible_facts": { "__ssh_defaults": { "Host": { "Condition": "*", "ForwardX11Trusted": true, "GSSAPIAuthentication": true, "SendEnv": [ "LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES", "LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT", "LC_IDENTIFICATION LC_ALL LANGUAGE", "XMODIFIERS" ] } } }, "ansible_included_var_files": [ "/tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [/cache/rhel-7.qcow2] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Thursday 21 July 2022 20:10:59 +0000 (0:00:00.054) 0:00:05.443 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "openssh-7.4p1-22.el7_9.x86_64 providing openssh is already installed", "openssh-clients-7.4p1-22.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Thursday 21 July 2022 20:10:59 +0000 (0:00:00.486) 0:00:05.930 ********* skipping: [/cache/rhel-7.qcow2] => { "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/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Thursday 21 July 2022 20:10:59 +0000 (0:00:00.022) 0:00:05.953 ********* skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Thursday 21 July 2022 20:10:59 +0000 (0:00:00.024) 0:00:05.977 ********* changed: [/cache/rhel-7.qcow2] => { "backup_file": "/etc/ssh/ssh_config.13666.2022-07-21@16:11:00~", "changed": true, "checksum": "33e5d453ffc19413f8e74630b334c90d4e22a1dd", "dest": "/etc/ssh/ssh_config", "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-1658434259.7625022-31052-84045055710765/source", "state": "file", "uid": 0 } META: role_complete for /cache/rhel-7.qcow2 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:27 Thursday 21 July 2022 20:11:00 +0000 (0:00:01.021) 0:00:06.998 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Skip if the system does not support drop in directory] ******************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:29 Thursday 21 July 2022 20:11:01 +0000 (0:00:00.745) 0:00:07.744 ********* META: ending play for /cache/rhel-7.qcow2 PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:81 Thursday 21 July 2022 20:11:01 +0000 (0:00:00.031) 0:00:07.775 ********* ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Restore configuration files] ********************************************* task path: /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:87 Thursday 21 July 2022 20:11:02 +0000 (0:00:00.721) 0:00:08.497 ********* included: /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml for /cache/rhel-7.qcow2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:2 Thursday 21 July 2022 20:11:02 +0000 (0:00:00.025) 0:00:08.522 ********* ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh/ssh_config.d/99-last.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.fPDCAs//etc/ssh/ssh_config.d/99-last.conf; then\n cp /tmp/ansible.fPDCAs//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.003704", "end": "2022-07-21 16:11:02.617500", "item": "/etc/ssh/ssh_config.d/99-last.conf", "rc": 0, "start": "2022-07-21 16:11:02.613796" } ok: [/cache/rhel-7.qcow2] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.fPDCAs//etc/ssh/ssh_config; then\n cp /tmp/ansible.fPDCAs//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.007057", "end": "2022-07-21 16:11:02.903880", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2022-07-21 16:11:02.896823" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:15 Thursday 21 July 2022 20:11:02 +0000 (0:00:00.625) 0:00:09.147 ********* ok: [/cache/rhel-7.qcow2] => { "changed": false, "path": "/tmp/ansible.fPDCAs", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=18 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 21 July 2022 20:11:03 +0000 (0:00:00.441) 0:00:09.588 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.02s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:2 -------------------- Backup files ------------------------------------------------------------ 0.75s /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:13 -------------------------------- Gathering Facts --------------------------------------------------------- 0.75s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:27 ------------------- Gathering Facts --------------------------------------------------------- 0.72s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:81 ------------------- Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:14 ------------------- Make sure openssh is installed before creating backup ------------------- 0.66s /tmp/tmpxz37r5cb/tests/ssh/tasks/setup.yml:7 ---------------------------------- Restore backed up files and remove what was not present ----------------- 0.63s /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:2 -------------------------------- fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.49s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Remove temporary directory for backup files ----------------------------- 0.44s /tmp/tmpxz37r5cb/tests/ssh/tasks/restore.yml:15 ------------------------------- Create a temporary directory for backup files --------------------------- 0.41s /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:5 --------------------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.41s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Skip if the system does not support drop in directory ------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:29 ------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Backup configuration files ---------------------------------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:11 ------------------- Setup ------------------------------------------------------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tasks/backup.yml:2 --------------------------------- Restore configuration files --------------------------------------------- 0.03s /tmp/tmpxz37r5cb/tests/ssh/tests_global_drop_in_role.yml:87 ------------------- fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /tmp/tmp0677phw8/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17