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/tmp6e14t4bh
  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_match.yml ******************************************************
1 plays in /tmp/tmpsqnv7rd5/tests/tests_match.yml

PLAY [Verify default packages as well as additional are installed] *************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:2
Thursday 21 July 2022  20:27:15 +0000 (0:00:00.013)       0:00:00.013 ********* 
[DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on 
the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 
4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 
2.13. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
ok: [/cache/rhel-6.qcow2.snap]
META: ran handlers

TASK [Backup configuration files] **********************************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:11
Thursday 21 July 2022  20:27:16 +0000 (0:00:01.018)       0:00:01.032 ********* 
included: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml for /cache/rhel-6.qcow2.snap

TASK [Setup] *******************************************************************
task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2
Thursday 21 July 2022  20:27:16 +0000 (0:00:00.029)       0:00:01.062 ********* 
included: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml for /cache/rhel-6.qcow2.snap

TASK [Ensure facts used by test] ***********************************************
task path: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:2
Thursday 21 July 2022  20:27:16 +0000 (0:00:00.049)       0:00:01.111 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Make sure openssh is installed before creating backup] *******************
task path: /tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7
Thursday 21 July 2022  20:27:16 +0000 (0:00:00.024)       0:00:01.136 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "rc": 0,
    "results": [
        "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed"
    ]
}

TASK [Create a temporary directory for backup files] ***************************
task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5
Thursday 21 July 2022  20:27:17 +0000 (0:00:00.624)       0:00:01.760 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "gid": 0,
    "group": "root",
    "mode": "0700",
    "owner": "root",
    "path": "/tmp/ansible.B51Rgw",
    "secontext": "unconfined_u:object_r:user_tmp_t:s0",
    "size": 4096,
    "state": "directory",
    "uid": 0
}

TASK [Backup files] ************************************************************
task path: /tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13
Thursday 21 July 2022  20:27:17 +0000 (0:00:00.355)       0:00:02.115 ********* 
ok: [/cache/rhel-6.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.B51Rgw/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n  cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.B51Rgw/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n",
    "delta": "0:00:00.003388",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:27:17.596176",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 16:27:17.592788"
}
ok: [/cache/rhel-6.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.B51Rgw/$(dirname /etc/ssh/ssh_config);\n  cp /etc/ssh/ssh_config /tmp/ansible.B51Rgw/$(dirname /etc/ssh/ssh_config)\nfi\n",
    "delta": "0:00:00.008384",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:27:17.852972",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 16:27:17.844588"
}

TASK [Run role] ****************************************************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:14
Thursday 21 July 2022  20:27:18 +0000 (0:00:00.674)       0:00:02.790 ********* 

TASK [linux-system-roles.ssh : Set platform/version specific variables] ********
task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:2
Thursday 21 July 2022  20:27:18 +0000 (0:00:00.036)       0:00:02.827 ********* 
included: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap

TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] **************
task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2
Thursday 21 July 2022  20:27:18 +0000 (0:00:00.031)       0:00:02.859 ********* 
ok: [/cache/rhel-6.qcow2.snap]

TASK [linux-system-roles.ssh : Set platform/version specific variables] ********
task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8
Thursday 21 July 2022  20:27:18 +0000 (0:00:00.380)       0:00:03.240 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
ok: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.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"
                ]
            }
        },
        "__ssh_supports_validate": false
    },
    "ansible_included_var_files": [
        "/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/vars/RedHat_6.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat_6.yml"
}
skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.10.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat_6.10.yml",
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.ssh : Ensure required packages are installed] *********
task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5
Thursday 21 July 2022  20:27:18 +0000 (0:00:00.056)       0:00:03.296 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "rc": 0,
    "results": [
        "openssh-5.3p1-123.el6_9.x86_64 providing openssh is already installed",
        "openssh-clients-5.3p1-123.el6_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/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:10
Thursday 21 July 2022  20:27:19 +0000 (0:00:00.478)       0:00:03.775 ********* 
skipping: [/cache/rhel-6.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/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:17
Thursday 21 July 2022  20:27:19 +0000 (0:00:00.026)       0:00:03.801 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.ssh : Generate the configuration file] ****************
task path: /tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28
Thursday 21 July 2022  20:27:19 +0000 (0:00:00.026)       0:00:03.828 ********* 
changed: [/cache/rhel-6.qcow2.snap] => {
    "backup_file": "/etc/ssh/ssh_config.5639.2022-07-21@16:27:19~",
    "changed": true,
    "checksum": "2d52bd7a92154556a85b5648fae7b5c2c00ae1ff",
    "dest": "/etc/ssh/ssh_config",
    "gid": 0,
    "group": "root",
    "md5sum": "fd6c6700f814034939d889b85fd00fed",
    "mode": "0644",
    "owner": "root",
    "secontext": "system_u:object_r:etc_t:s0",
    "size": 172,
    "src": "/root/.ansible/tmp/ansible-tmp-1658435239.4425535-48274-40814833564281/source",
    "state": "file",
    "uid": 0
}
META: role_complete for /cache/rhel-6.qcow2.snap

TASK [Download the custom configuration file] **********************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:42
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.954)       0:00:04.783 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "content": "IwojIEFuc2libGUgbWFuYWdlZAojCk1hdGNoIHVzZXIgdGVzdHVzZXIKICBDb21wcmVzc2lvbiB5ZXMKTWF0Y2ggaG9zdCBleGFtcGxlCiAgSG9zdG5hbWUgZXhhbXBsZS5jb20KSG9zdCBsb2NhbAogIFVzZXIgbG9jYWx1c2VyCkhvc3QgcmVtb3RlCiAgSG9zdG5hbWUgcmVtb3RlLmV4YW1wbGUuY29tCg==",
    "encoding": "base64",
    "source": "/etc/ssh/ssh_config"
}

TASK [Verify the options are in the file] **************************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:47
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.417)       0:00:05.200 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Run first ssh in test mode to evaluate the configuration] ****************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:61
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.053)       0:00:05.253 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Run second ssh in test mode to evaluate the configuration] ***************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:65
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.044)       0:00:05.297 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Run third ssh in test mode to evaluate the configuration] ****************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:69
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.041)       0:00:05.339 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Verify the options are correctly evaluated] ******************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:73
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.033)       0:00:05.372 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Restore configuration files] *********************************************
task path: /tmp/tmpsqnv7rd5/tests/tests_match.yml:94
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.036)       0:00:05.408 ********* 
included: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml for /cache/rhel-6.qcow2.snap

TASK [Restore backed up files and remove what was not present] *****************
task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2
Thursday 21 July 2022  20:27:20 +0000 (0:00:00.028)       0:00:05.437 ********* 
ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.B51Rgw//etc/ssh/ssh_config.d/00-ansible.conf; then\n  cp /tmp/ansible.B51Rgw//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.003304",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:27:20.790291",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 16:27:20.786987"
}
ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.B51Rgw//etc/ssh/ssh_config; then\n  cp /tmp/ansible.B51Rgw//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.005355",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:27:21.076582",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 16:27:21.071227"
}

TASK [Remove temporary directory for backup files] *****************************
task path: /tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15
Thursday 21 July 2022  20:27:21 +0000 (0:00:00.573)       0:00:06.010 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "path": "/tmp/ansible.B51Rgw",
    "state": "absent"
}
META: ran handlers
META: ran handlers

PLAY RECAP *********************************************************************
/cache/rhel-6.qcow2.snap   : ok=16   changed=1    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0   

Thursday 21 July 2022  20:27:21 +0000 (0:00:00.430)       0:00:06.440 ********* 
=============================================================================== 
Gathering Facts --------------------------------------------------------- 1.02s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:2 --------------------------------------
linux-system-roles.ssh : Generate the configuration file ---------------- 0.95s
/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:28 ---------
Backup files ------------------------------------------------------------ 0.67s
/tmp/tmpsqnv7rd5/tests/tasks/backup.yml:13 ------------------------------------
Make sure openssh is installed before creating backup ------------------- 0.62s
/tmp/tmpsqnv7rd5/tests/tasks/setup.yml:7 --------------------------------------
Restore backed up files and remove what was not present ----------------- 0.57s
/tmp/tmpsqnv7rd5/tests/tasks/restore.yml:2 ------------------------------------
linux-system-roles.ssh : Ensure required packages are installed --------- 0.48s
/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 ----------
Remove temporary directory for backup files ----------------------------- 0.43s
/tmp/tmpsqnv7rd5/tests/tasks/restore.yml:15 -----------------------------------
Download the custom configuration file ---------------------------------- 0.42s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:42 -------------------------------------
linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.38s
/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 ------
Create a temporary directory for backup files --------------------------- 0.36s
/tmp/tmpsqnv7rd5/tests/tasks/backup.yml:5 -------------------------------------
linux-system-roles.ssh : Set platform/version specific variables -------- 0.06s
/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:8 ------
Verify the options are in the file -------------------------------------- 0.05s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:47 -------------------------------------
Setup ------------------------------------------------------------------- 0.05s
/tmp/tmpsqnv7rd5/tests/tasks/backup.yml:2 -------------------------------------
Run first ssh in test mode to evaluate the configuration ---------------- 0.04s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:61 -------------------------------------
Run second ssh in test mode to evaluate the configuration --------------- 0.04s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:65 -------------------------------------
Run role ---------------------------------------------------------------- 0.04s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:14 -------------------------------------
Verify the options are correctly evaluated ------------------------------ 0.04s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:73 -------------------------------------
Run third ssh in test mode to evaluate the configuration ---------------- 0.03s
/tmp/tmpsqnv7rd5/tests/tests_match.yml:69 -------------------------------------
linux-system-roles.ssh : Set platform/version specific variables -------- 0.03s
/tmp/tmpsqnv7rd5/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 ----------
Backup configuration files ---------------------------------------------- 0.03s
/tmp/tmpsqnv7rd5/tests/tests_match.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/tmp6e14t4bh
  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_match.yml ******************************************************
1 plays in /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml

PLAY [Verify default packages as well as additional are installed] *************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:2
Thursday 21 July 2022  20:28:50 +0000 (0:00:00.014)       0:00:00.014 ********* 
[DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on 
the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 
4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 
2.13. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
ok: [/cache/rhel-6.qcow2.snap]
META: ran handlers

TASK [Backup configuration files] **********************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:11
Thursday 21 July 2022  20:28:51 +0000 (0:00:01.010)       0:00:01.025 ********* 
included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml for /cache/rhel-6.qcow2.snap

TASK [Setup] *******************************************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2
Thursday 21 July 2022  20:28:51 +0000 (0:00:00.028)       0:00:01.053 ********* 
included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml for /cache/rhel-6.qcow2.snap

TASK [Ensure facts used by test] ***********************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:2
Thursday 21 July 2022  20:28:51 +0000 (0:00:00.046)       0:00:01.099 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Make sure openssh is installed before creating backup] *******************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7
Thursday 21 July 2022  20:28:51 +0000 (0:00:00.023)       0:00:01.122 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "rc": 0,
    "results": [
        "openssh-clients-5.3p1-123.el6_9.x86_64 providing openssh-clients is already installed"
    ]
}

TASK [Create a temporary directory for backup files] ***************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:5
Thursday 21 July 2022  20:28:52 +0000 (0:00:00.616)       0:00:01.739 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "gid": 0,
    "group": "root",
    "mode": "0700",
    "owner": "root",
    "path": "/tmp/ansible.snejlW",
    "secontext": "unconfined_u:object_r:user_tmp_t:s0",
    "size": 4096,
    "state": "directory",
    "uid": 0
}

TASK [Backup files] ************************************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13
Thursday 21 July 2022  20:28:52 +0000 (0:00:00.341)       0:00:02.080 ********* 
ok: [/cache/rhel-6.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.snejlW/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n  cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.snejlW/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n",
    "delta": "0:00:00.003408",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:28:52.220481",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 16:28:52.217073"
}
ok: [/cache/rhel-6.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.snejlW/$(dirname /etc/ssh/ssh_config);\n  cp /etc/ssh/ssh_config /tmp/ansible.snejlW/$(dirname /etc/ssh/ssh_config)\nfi\n",
    "delta": "0:00:00.007974",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:28:52.480763",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 16:28:52.472789"
}

TASK [Run role] ****************************************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:14
Thursday 21 July 2022  20:28:53 +0000 (0:00:00.684)       0:00:02.764 ********* 

TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] ***
task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2
Thursday 21 July 2022  20:28:53 +0000 (0:00:00.041)       0:00:02.806 ********* 
included: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap

TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] *******
task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2
Thursday 21 July 2022  20:28:53 +0000 (0:00:00.031)       0:00:02.838 ********* 
ok: [/cache/rhel-6.qcow2.snap]

TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] ***
task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7
Thursday 21 July 2022  20:28:53 +0000 (0:00:00.385)       0:00:03.223 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
ok: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.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"
                ]
            }
        },
        "__ssh_supports_validate": false
    },
    "ansible_included_var_files": [
        "/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/RedHat_6.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat_6.yml"
}
skipping: [/cache/rhel-6.qcow2.snap] => (item=RedHat_6.10.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat_6.10.yml",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] ***
task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5
Thursday 21 July 2022  20:28:53 +0000 (0:00:00.061)       0:00:03.285 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "rc": 0,
    "results": [
        "openssh-5.3p1-123.el6_9.x86_64 providing openssh is already installed",
        "openssh-clients-5.3p1-123.el6_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/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10
Thursday 21 July 2022  20:28:54 +0000 (0:00:00.483)       0:00:03.768 ********* 
skipping: [/cache/rhel-6.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/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17
Thursday 21 July 2022  20:28:54 +0000 (0:00:00.025)       0:00:03.793 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.ssh : Generate the configuration file] *********
task path: /tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28
Thursday 21 July 2022  20:28:54 +0000 (0:00:00.023)       0:00:03.817 ********* 
changed: [/cache/rhel-6.qcow2.snap] => {
    "backup_file": "/etc/ssh/ssh_config.5644.2022-07-21@16:28:54~",
    "changed": true,
    "checksum": "2d52bd7a92154556a85b5648fae7b5c2c00ae1ff",
    "dest": "/etc/ssh/ssh_config",
    "gid": 0,
    "group": "root",
    "md5sum": "fd6c6700f814034939d889b85fd00fed",
    "mode": "0644",
    "owner": "root",
    "secontext": "system_u:object_r:etc_t:s0",
    "size": 172,
    "src": "/root/.ansible/tmp/ansible-tmp-1658435334.301823-50865-97846815368462/source",
    "state": "file",
    "uid": 0
}
META: role_complete for /cache/rhel-6.qcow2.snap

TASK [Download the custom configuration file] **********************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:42
Thursday 21 July 2022  20:28:55 +0000 (0:00:01.012)       0:00:04.830 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "content": "IwojIEFuc2libGUgbWFuYWdlZAojCk1hdGNoIHVzZXIgdGVzdHVzZXIKICBDb21wcmVzc2lvbiB5ZXMKTWF0Y2ggaG9zdCBleGFtcGxlCiAgSG9zdG5hbWUgZXhhbXBsZS5jb20KSG9zdCBsb2NhbAogIFVzZXIgbG9jYWx1c2VyCkhvc3QgcmVtb3RlCiAgSG9zdG5hbWUgcmVtb3RlLmV4YW1wbGUuY29tCg==",
    "encoding": "base64",
    "source": "/etc/ssh/ssh_config"
}

TASK [Verify the options are in the file] **************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:47
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.419)       0:00:05.249 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Run first ssh in test mode to evaluate the configuration] ****************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:61
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.054)       0:00:05.304 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Run second ssh in test mode to evaluate the configuration] ***************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:65
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.041)       0:00:05.346 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Run third ssh in test mode to evaluate the configuration] ****************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:69
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.048)       0:00:05.395 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Verify the options are correctly evaluated] ******************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:73
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.038)       0:00:05.433 ********* 
skipping: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Restore configuration files] *********************************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:93
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.041)       0:00:05.474 ********* 
included: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml for /cache/rhel-6.qcow2.snap

TASK [Restore backed up files and remove what was not present] *****************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2
Thursday 21 July 2022  20:28:55 +0000 (0:00:00.031)       0:00:05.505 ********* 
ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.snejlW//etc/ssh/ssh_config.d/00-ansible.conf; then\n  cp /tmp/ansible.snejlW//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.003402",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:28:55.570891",
    "item": "/etc/ssh/ssh_config.d/00-ansible.conf",
    "rc": 0,
    "start": "2022-07-21 16:28:55.567489"
}
ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/ssh/ssh_config) => {
    "ansible_loop_var": "item",
    "changed": false,
    "cmd": "if test -f /tmp/ansible.snejlW//etc/ssh/ssh_config; then\n  cp /tmp/ansible.snejlW//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.005760",
    "deprecations": [
        {
            "collection_name": null,
            "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]",
            "version": "2.13"
        }
    ],
    "end": "2022-07-21 16:28:55.812406",
    "item": "/etc/ssh/ssh_config",
    "rc": 0,
    "start": "2022-07-21 16:28:55.806646"
}

TASK [Remove temporary directory for backup files] *****************************
task path: /tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15
Thursday 21 July 2022  20:28:56 +0000 (0:00:00.588)       0:00:06.094 ********* 
ok: [/cache/rhel-6.qcow2.snap] => {
    "changed": false,
    "path": "/tmp/ansible.snejlW",
    "state": "absent"
}
META: ran handlers
META: ran handlers

PLAY RECAP *********************************************************************
/cache/rhel-6.qcow2.snap   : ok=16   changed=1    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0   

Thursday 21 July 2022  20:28:56 +0000 (0:00:00.419)       0:00:06.513 ********* 
=============================================================================== 
fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.01s
/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 
Gathering Facts --------------------------------------------------------- 1.01s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:2 ----------------------------------
Backup files ------------------------------------------------------------ 0.68s
/tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:13 --------------------------------
Make sure openssh is installed before creating backup ------------------- 0.62s
/tmp/tmpyr9b2k_r/tests/ssh/tasks/setup.yml:7 ----------------------------------
Restore backed up files and remove what was not present ----------------- 0.59s
/tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:2 --------------------------------
fedora.linux_system_roles.ssh : Ensure required packages are installed --- 0.48s
/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 
Remove temporary directory for backup files ----------------------------- 0.42s
/tmp/tmpyr9b2k_r/tests/ssh/tasks/restore.yml:15 -------------------------------
Download the custom configuration file ---------------------------------- 0.42s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:42 ---------------------------------
fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.39s
/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 
Create a temporary directory for backup files --------------------------- 0.34s
/tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:5 ---------------------------------
fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.06s
/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 
Verify the options are in the file -------------------------------------- 0.05s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:47 ---------------------------------
Run second ssh in test mode to evaluate the configuration --------------- 0.05s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:65 ---------------------------------
Setup ------------------------------------------------------------------- 0.05s
/tmp/tmpyr9b2k_r/tests/ssh/tasks/backup.yml:2 ---------------------------------
Run first ssh in test mode to evaluate the configuration ---------------- 0.04s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:61 ---------------------------------
Run role ---------------------------------------------------------------- 0.04s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:14 ---------------------------------
Verify the options are correctly evaluated ------------------------------ 0.04s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:73 ---------------------------------
Run third ssh in test mode to evaluate the configuration ---------------- 0.04s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:69 ---------------------------------
fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s
/tmp/tmp6e14t4bh/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 
Restore configuration files --------------------------------------------- 0.03s
/tmp/tmpyr9b2k_r/tests/ssh/tests_match.yml:93 ---------------------------------