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_config_mode.yml *****************************************
1 plays in /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml

PLAY [Test we can write global config with given permissions] ******************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:2
Thursday 21 July 2022  20:43:30 +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_config_mode.yml:11
Thursday 21 July 2022  20:43:31 +0000 (0:00:01.136)       0:00:01.149 ********* 
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:31 +0000 (0:00:00.026)       0:00:01.176 ********* 
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:31 +0000 (0:00:00.025)       0:00:01.202 ********* 
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:31 +0000 (0:00:00.043)       0:00:01.245 ********* 
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:33 +0000 (0:00:01.909)       0:00:03.154 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "gid": 0,
    "group": "root",
    "mode": "0700",
    "owner": "root",
    "path": "/tmp/ansible.o9n1tido",
    "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:34 +0000 (0:00:00.513)       0:00:03.668 ********* 
ok: [/cache/fedora-36.qcow2.snap] => (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.o9n1tido/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n  cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.o9n1tido/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n",
    "delta": "0:00:00.009603",
    "end": "2022-07-21 20:43:34.237811",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 20:43:34.228208"
}
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.o9n1tido/$(dirname /etc/ssh/ssh_config);\n  cp /etc/ssh/ssh_config /tmp/ansible.o9n1tido/$(dirname /etc/ssh/ssh_config)\nfi\n",
    "delta": "0:00:00.009150",
    "end": "2022-07-21 20:43:34.629834",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 20:43:34.620684"
}

TASK [Run role] ****************************************************************
task path: /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:14
Thursday 21 July 2022  20:43:35 +0000 (0:00:00.939)       0:00:04.608 ********* 

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:35 +0000 (0:00:00.033)       0:00:04.641 ********* 
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:35 +0000 (0:00:00.025)       0:00:04.667 ********* 
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:35 +0000 (0:00:00.549)       0:00:05.216 ********* 
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:35 +0000 (0:00:00.050)       0:00:05.267 ********* 
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:43:37 +0000 (0:00:01.789)       0:00:07.056 ********* 
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:43:37 +0000 (0:00:00.024)       0:00:07.081 ********* 
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:43:37 +0000 (0:00:00.024)       0:00:07.105 ********* 
changed: [/cache/fedora-36.qcow2.snap] => {
    "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.7888.2022-07-21@20:43:38~",
    "changed": true,
    "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b",
    "dest": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "gid": 2,
    "group": "daemon",
    "md5sum": "2f19240ad6e71480c76da5718e2aa100",
    "mode": "0600",
    "owner": "daemon",
    "secontext": "system_u:object_r:etc_t:s0",
    "size": 62,
    "src": "/root/.ansible/tmp/ansible-tmp-1658436217.6566627-64886-126525972917053/source",
    "state": "file",
    "uid": 2
}
META: role_complete for /cache/fedora-36.qcow2.snap

TASK [Download the global configuration file] **********************************
task path: /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:38
Thursday 21 July 2022  20:43:38 +0000 (0:00:01.196)       0:00:08.301 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=",
    "encoding": "base64",
    "source": "/etc/ssh/ssh_config.d/00-ansible.conf"
}

TASK [Stat the configuration file too] *****************************************
task path: /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:43
Thursday 21 July 2022  20:43:39 +0000 (0:00:00.526)       0:00:08.828 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "stat": {
        "atime": 1658436218.8504772,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b",
        "ctime": 1658436218.3114772,
        "dev": 32,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 2,
        "gr_name": "daemon",
        "inode": 35417,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0600",
        "mtime": 1658436217.872477,
        "nlink": 1,
        "path": "/etc/ssh/ssh_config.d/00-ansible.conf",
        "pw_name": "daemon",
        "readable": true,
        "rgrp": false,
        "roth": false,
        "rusr": true,
        "size": 62,
        "uid": 2,
        "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_config_mode.yml:49
Thursday 21 July 2022  20:43:39 +0000 (0:00:00.426)       0:00:09.254 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify the file has expected permissions] ********************************
task path: /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:55
Thursday 21 July 2022  20:43:39 +0000 (0:00:00.046)       0:00:09.301 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Restore configuration files] *********************************************
task path: /tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:63
Thursday 21 July 2022  20:43:39 +0000 (0:00:00.035)       0:00:09.336 ********* 
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:43:39 +0000 (0:00:00.025)       0:00:09.361 ********* 
ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.o9n1tido//etc/ssh/ssh_config.d/00-ansible.conf; then\n  cp /tmp/ansible.o9n1tido//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.007019",
    "end": "2022-07-21 20:43:39.813851",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 20:43:39.806832"
}
ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.o9n1tido//etc/ssh/ssh_config; then\n  cp /tmp/ansible.o9n1tido//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.006459",
    "end": "2022-07-21 20:43:40.191411",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 20:43:40.184952"
}

TASK [Remove temporary directory for backup files] *****************************
task path: /tmp/tmp_b_5f9t_/tests/tasks/restore.yml:15
Thursday 21 July 2022  20:43:40 +0000 (0:00:00.807)       0:00:10.169 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "path": "/tmp/ansible.o9n1tido",
    "state": "absent"
}
META: ran handlers
META: ran handlers

PLAY RECAP *********************************************************************
/cache/fedora-36.qcow2.snap : ok=18   changed=1    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0   

Thursday 21 July 2022  20:43:41 +0000 (0:00:00.574)       0:00:10.743 ********* 
=============================================================================== 
Make sure openssh is installed before creating backup ------------------- 1.91s
/tmp/tmp_b_5f9t_/tests/tasks/setup.yml:7 --------------------------------------
linux-system-roles.ssh : Ensure required packages are installed --------- 1.79s
/tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ----------
linux-system-roles.ssh : Generate the configuration file ---------------- 1.20s
/tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 ---------
Gathering Facts --------------------------------------------------------- 1.14s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:2 -------------------------
Backup files ------------------------------------------------------------ 0.94s
/tmp/tmp_b_5f9t_/tests/tasks/backup.yml:13 ------------------------------------
Restore backed up files and remove what was not present ----------------- 0.81s
/tmp/tmp_b_5f9t_/tests/tasks/restore.yml:2 ------------------------------------
Remove temporary directory for backup files ----------------------------- 0.57s
/tmp/tmp_b_5f9t_/tests/tasks/restore.yml:15 -----------------------------------
linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.55s
/tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------
Download the global configuration file ---------------------------------- 0.53s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:38 ------------------------
Create a temporary directory for backup files --------------------------- 0.51s
/tmp/tmp_b_5f9t_/tests/tasks/backup.yml:5 -------------------------------------
Stat the configuration file too ----------------------------------------- 0.43s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:43 ------------------------
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 ------
Verify the options are in the file -------------------------------------- 0.05s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:49 ------------------------
Ensure facts used by test ----------------------------------------------- 0.04s
/tmp/tmp_b_5f9t_/tests/tasks/setup.yml:2 --------------------------------------
Verify the file has expected permissions -------------------------------- 0.04s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:55 ------------------------
Run role ---------------------------------------------------------------- 0.03s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:14 ------------------------
Backup configuration files ---------------------------------------------- 0.03s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:11 ------------------------
linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s
/tmp/tmp_b_5f9t_/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ----------
Setup ------------------------------------------------------------------- 0.03s
/tmp/tmp_b_5f9t_/tests/tasks/backup.yml:2 -------------------------------------
Restore configuration files --------------------------------------------- 0.03s
/tmp/tmp_b_5f9t_/tests/tests_global_config_mode.yml:63 ------------------------
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_config_mode.yml *****************************************
1 plays in /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml

PLAY [Test we can write global config with given permissions] ******************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:2
Thursday 21 July 2022  20:46:25 +0000 (0:00:00.012)       0:00:00.012 ********* 
ok: [/cache/fedora-36.qcow2.snap]
META: ran handlers

TASK [Backup configuration files] **********************************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:11
Thursday 21 July 2022  20:46:26 +0000 (0:00:01.095)       0:00:01.107 ********* 
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:26 +0000 (0:00:00.025)       0:00:01.133 ********* 
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:26 +0000 (0:00:00.024)       0:00:01.157 ********* 
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:26 +0000 (0:00:00.019)       0:00:01.176 ********* 
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:28 +0000 (0:00:01.828)       0:00:03.005 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "gid": 0,
    "group": "root",
    "mode": "0700",
    "owner": "root",
    "path": "/tmp/ansible.7sxz2tgh",
    "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:28 +0000 (0:00:00.523)       0:00:03.528 ********* 
ok: [/cache/fedora-36.qcow2.snap] => (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.7sxz2tgh/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n  cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.7sxz2tgh/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n",
    "delta": "0:00:00.008667",
    "end": "2022-07-21 20:46:28.131196",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 20:46:28.122529"
}
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.7sxz2tgh/$(dirname /etc/ssh/ssh_config);\n  cp /etc/ssh/ssh_config /tmp/ansible.7sxz2tgh/$(dirname /etc/ssh/ssh_config)\nfi\n",
    "delta": "0:00:00.008519",
    "end": "2022-07-21 20:46:28.515214",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 20:46:28.506695"
}

TASK [Run role] ****************************************************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:14
Thursday 21 July 2022  20:46:29 +0000 (0:00:00.923)       0:00:04.451 ********* 

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:29 +0000 (0:00:00.036)       0:00:04.487 ********* 
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:29 +0000 (0:00:00.027)       0:00:04.515 ********* 
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:30 +0000 (0:00:00.535)       0:00:05.050 ********* 
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:30 +0000 (0:00:00.054)       0:00:05.105 ********* 
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:31 +0000 (0:00:01.758)       0:00:06.863 ********* 
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:31 +0000 (0:00:00.025)       0:00:06.888 ********* 
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:31 +0000 (0:00:00.025)       0:00:06.914 ********* 
changed: [/cache/fedora-36.qcow2.snap] => {
    "backup_file": "/etc/ssh/ssh_config.d/00-ansible.conf.7883.2022-07-21@20:46:32~",
    "changed": true,
    "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b",
    "dest": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "gid": 2,
    "group": "daemon",
    "md5sum": "2f19240ad6e71480c76da5718e2aa100",
    "mode": "0600",
    "owner": "daemon",
    "secontext": "system_u:object_r:etc_t:s0",
    "size": 62,
    "src": "/root/.ansible/tmp/ansible-tmp-1658436392.0076737-68272-2963291494397/source",
    "state": "file",
    "uid": 2
}
META: role_complete for /cache/fedora-36.qcow2.snap

TASK [Download the global configuration file] **********************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:38
Thursday 21 July 2022  20:46:33 +0000 (0:00:01.145)       0:00:08.059 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "content": "IwojIEFuc2libGUgbWFuYWdlZAojCkNvbXByZXNzaW9uIHllcwpHU1NBUElBdXRoZW50aWNhdGlvbiBubwo=",
    "encoding": "base64",
    "source": "/etc/ssh/ssh_config.d/00-ansible.conf"
}

TASK [Stat the configuration file too] *****************************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:43
Thursday 21 July 2022  20:46:33 +0000 (0:00:00.518)       0:00:08.578 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "stat": {
        "atime": 1658436392.6369247,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "134a8461ceac8f2d22205f68566daf5b8eb5cb1b",
        "ctime": 1658436392.1139247,
        "dev": 32,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 2,
        "gr_name": "daemon",
        "inode": 35417,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0600",
        "mtime": 1658436391.6959248,
        "nlink": 1,
        "path": "/etc/ssh/ssh_config.d/00-ansible.conf",
        "pw_name": "daemon",
        "readable": true,
        "rgrp": false,
        "roth": false,
        "rusr": true,
        "size": 62,
        "uid": 2,
        "version": "42",
        "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_config_mode.yml:48
Thursday 21 July 2022  20:46:34 +0000 (0:00:00.415)       0:00:08.994 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify the file has expected permissions] ********************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:54
Thursday 21 July 2022  20:46:34 +0000 (0:00:00.042)       0:00:09.036 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Restore configuration files] *********************************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:62
Thursday 21 July 2022  20:46:34 +0000 (0:00:00.032)       0:00:09.068 ********* 
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:34 +0000 (0:00:00.024)       0:00:09.093 ********* 
ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.7sxz2tgh//etc/ssh/ssh_config.d/00-ansible.conf; then\n  cp /tmp/ansible.7sxz2tgh//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.006528",
    "end": "2022-07-21 20:46:33.564248",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 20:46:33.557720"
}
ok: [/cache/fedora-36.qcow2.snap] => (item=/etc/ssh/ssh_config) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.7sxz2tgh//etc/ssh/ssh_config; then\n  cp /tmp/ansible.7sxz2tgh//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.006451",
    "end": "2022-07-21 20:46:33.942177",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 20:46:33.935726"
}

TASK [Remove temporary directory for backup files] *****************************
task path: /tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:15
Thursday 21 July 2022  20:46:34 +0000 (0:00:00.788)       0:00:09.881 ********* 
ok: [/cache/fedora-36.qcow2.snap] => {
    "changed": false,
    "path": "/tmp/ansible.7sxz2tgh",
    "state": "absent"
}
META: ran handlers
META: ran handlers

PLAY RECAP *********************************************************************
/cache/fedora-36.qcow2.snap : ok=18   changed=1    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0   

Thursday 21 July 2022  20:46:35 +0000 (0:00:00.568)       0:00:10.450 ********* 
=============================================================================== 
Make sure openssh is installed before creating backup ------------------- 1.83s
/tmp/tmp7s9fngkn/tests/ssh/tasks/setup.yml:7 ----------------------------------
fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.76s
/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 
fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.15s
/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 
Gathering Facts --------------------------------------------------------- 1.10s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:2 ---------------------
Backup files ------------------------------------------------------------ 0.92s
/tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:13 --------------------------------
Restore backed up files and remove what was not present ----------------- 0.79s
/tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:2 --------------------------------
Remove temporary directory for backup files ----------------------------- 0.57s
/tmp/tmp7s9fngkn/tests/ssh/tasks/restore.yml:15 -------------------------------
fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.54s
/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 
Create a temporary directory for backup files --------------------------- 0.52s
/tmp/tmp7s9fngkn/tests/ssh/tasks/backup.yml:5 ---------------------------------
Download the global configuration file ---------------------------------- 0.52s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:38 --------------------
Stat the configuration file too ----------------------------------------- 0.42s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:43 --------------------
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 options are in the file -------------------------------------- 0.04s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:48 --------------------
Run role ---------------------------------------------------------------- 0.04s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:14 --------------------
Verify the file has expected permissions -------------------------------- 0.03s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:54 --------------------
fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s
/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 
fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s
/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 
Backup configuration files ---------------------------------------------- 0.03s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:11 --------------------
fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s
/tmp/tmpkn11ymek/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 
Restore configuration files --------------------------------------------- 0.02s
/tmp/tmp7s9fngkn/tests/ssh/tests_global_config_mode.yml:62 --------------------