# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.14.4] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.14/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-cidx1hzk9d/.collection executable location = /opt/ansible-2.14/bin/ansible-playbook python version = 3.9.16 (main, Jan 17 2023, 18:53:15) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/opt/ansible-2.14/bin/python3.9) jinja version = 3.1.2 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 /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml PLAY [Verify default packages as well as additional are installed] ************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:2 Sunday 28 May 2023 09:25:29 +0000 (0:00:00.021) 0:00:00.021 ************ ok: [sut] TASK [Backup configuration files] ********************************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:11 Sunday 28 May 2023 09:25:30 +0000 (0:00:00.938) 0:00:00.959 ************ included: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/backup.yml for sut TASK [Setup] ******************************************************************* task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/backup.yml:2 Sunday 28 May 2023 09:25:30 +0000 (0:00:00.022) 0:00:00.981 ************ included: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/setup.yml for sut TASK [Ensure facts used by test] *********************************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/setup.yml:2 Sunday 28 May 2023 09:25:30 +0000 (0:00:00.021) 0:00:01.002 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Make sure openssh is installed before creating backup] ******************* task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/setup.yml:7 Sunday 28 May 2023 09:25:30 +0000 (0:00:00.016) 0:00:01.019 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a temporary directory for backup files] *************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/backup.yml:5 Sunday 28 May 2023 09:25:32 +0000 (0:00:02.477) 0:00:03.496 ************ ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.6xudoadj", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/backup.yml:13 Sunday 28 May 2023 09:25:33 +0000 (0:00:00.317) 0:00:03.814 ************ ok: [sut] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.6xudoadj/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.6xudoadj/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003954", "end": "2023-05-28 09:25:33.420254", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2023-05-28 09:25:33.416300" } ok: [sut] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config; then\n mkdir -p /tmp/ansible.6xudoadj/$(dirname /etc/ssh/ssh_config);\n cp /etc/ssh/ssh_config /tmp/ansible.6xudoadj/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.015318", "end": "2023-05-28 09:25:33.653124", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2023-05-28 09:25:33.637806" } TASK [Run role] **************************************************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:14 Sunday 28 May 2023 09:25:33 +0000 (0:00:00.588) 0:00:04.403 ************ TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Sunday 28 May 2023 09:25:33 +0000 (0:00:00.047) 0:00:04.450 ************ included: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Sunday 28 May 2023 09:25:33 +0000 (0:00:00.027) 0:00:04.477 ************ ok: [sut] TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Sunday 28 May 2023 09:25:34 +0000 (0:00:00.382) 0:00:04.859 ************ skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (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": [ "/WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (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: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Sunday 28 May 2023 09:25:34 +0000 (0:00:00.053) 0:00:04.913 ************ ok: [sut] => { "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: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 Sunday 28 May 2023 09:25:36 +0000 (0:00:02.327) 0:00:07.240 ************ skipping: [sut] => { "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: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Sunday 28 May 2023 09:25:36 +0000 (0:00:00.025) 0:00:07.266 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Sunday 28 May 2023 09:25:36 +0000 (0:00:00.026) 0:00:07.292 ************ changed: [sut] => { "changed": true, "checksum": "ef2a28213aba2bd9717e70173d449a502457eaad", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "b3139d38b34b2e55be846c02e58c8181", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 191, "src": "/root/.ansible/tmp/ansible-tmp-1685265936.737967-9763-70285409961970/source", "state": "file", "uid": 0 } TASK [Download the custom configuration file] ********************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:43 Sunday 28 May 2023 09:25:37 +0000 (0:00:01.278) 0:00:08.570 ************ ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6c3NoCgpNYXRjaCB1c2VyIHRlc3R1c2VyCiAgQ29tcHJlc3Npb24geWVzCk1hdGNoIGhvc3QgZXhhbXBsZQogIEhvc3RuYW1lIGV4YW1wbGUuY29tCkhvc3QgbG9jYWwKICBVc2VyIGxvY2FsdXNlcgpIb3N0IHJlbW90ZQogIEhvc3RuYW1lIHJlbW90ZS5leGFtcGxlLmNvbQo=", "encoding": "base64", "source": "/etc/ssh/ssh_config.d/00-ansible.conf" } TASK [Verify the options are in the file] ************************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:48 Sunday 28 May 2023 09:25:38 +0000 (0:00:00.345) 0:00:08.916 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Run first ssh in test mode to evaluate the configuration] **************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:64 Sunday 28 May 2023 09:25:38 +0000 (0:00:00.040) 0:00:08.957 ************ ok: [sut] => { "changed": false, "cmd": [ "ssh", "-G", "testuser@example" ], "delta": "0:00:00.010220", "end": "2023-05-28 09:25:38.456138", "rc": 0, "start": "2023-05-28 09:25:38.445918" } STDOUT: user testuser hostname example.com port 22 addressfamily any batchmode no canonicalizefallbacklocal yes canonicalizehostname false checkhostip no compression yes controlmaster false enablesshkeysign no clearallforwardings no exitonforwardfailure no fingerprinthash SHA256 forwardx11 no forwardx11trusted yes gatewayports no gssapiauthentication yes gssapikeyexchange no gssapidelegatecredentials no gssapitrustdns no gssapirenewalforcesrekey no gssapikexalgorithms gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512- hashknownhosts no hostbasedauthentication no identitiesonly no kbdinteractiveauthentication yes nohostauthenticationforlocalhost no passwordauthentication yes permitlocalcommand no proxyusefdpass no pubkeyauthentication yes requesttty auto sessiontype default stdinnull no forkafterauthentication no streamlocalbindunlink no stricthostkeychecking ask tcpkeepalive yes tunnel false verifyhostkeydns false visualhostkey no updatehostkeys true canonicalizemaxdots 1 connectionattempts 1 forwardx11timeout 1200 numberofpasswordprompts 3 serveralivecountmax 3 serveraliveinterval 0 ciphers aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 hostbasedacceptedalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512 casignaturealgorithms ecdsa-sha2-nistp256,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-256,rsa-sha2-512 loglevel INFO macs hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512 securitykeyprovider internal pubkeyacceptedalgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-v01@openssh.com xauthlocation /usr/bin/xauth identityfile ~/.ssh/id_rsa identityfile ~/.ssh/id_dsa identityfile ~/.ssh/id_ecdsa identityfile ~/.ssh/id_ecdsa_sk identityfile ~/.ssh/id_ed25519 identityfile ~/.ssh/id_ed25519_sk identityfile ~/.ssh/id_xmss canonicaldomains none globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 userknownhostsfile /root/.ssh/known_hosts /root/.ssh/known_hosts2 sendenv LANG sendenv LC_CTYPE sendenv LC_NUMERIC sendenv LC_TIME sendenv LC_COLLATE sendenv LC_MONETARY sendenv LC_MESSAGES sendenv LC_PAPER sendenv LC_NAME sendenv LC_ADDRESS sendenv LC_TELEPHONE sendenv LC_MEASUREMENT sendenv LC_IDENTIFICATION sendenv LC_ALL sendenv LANGUAGE sendenv XMODIFIERS logverbose none permitremoteopen any addkeystoagent false forwardagent no connecttimeout none tunneldevice any:any canonicalizePermittedcnames none controlpersist no escapechar ~ ipqos af21 cs1 rekeylimit 0 0 streamlocalbindmask 0177 syslogfacility USER STDERR: Pseudo-terminal will not be allocated because stdin is not a terminal. TASK [Run second ssh in test mode to evaluate the configuration] *************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:69 Sunday 28 May 2023 09:25:38 +0000 (0:00:00.243) 0:00:09.200 ************ ok: [sut] => { "changed": false, "cmd": [ "ssh", "-G", "local" ], "delta": "0:00:00.007888", "end": "2023-05-28 09:25:38.705722", "rc": 0, "start": "2023-05-28 09:25:38.697834" } STDOUT: user localuser hostname local port 22 addressfamily any batchmode no canonicalizefallbacklocal yes canonicalizehostname false checkhostip no compression no controlmaster false enablesshkeysign no clearallforwardings no exitonforwardfailure no fingerprinthash SHA256 forwardx11 no forwardx11trusted yes gatewayports no gssapiauthentication yes gssapikeyexchange no gssapidelegatecredentials no gssapitrustdns no gssapirenewalforcesrekey no gssapikexalgorithms gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512- hashknownhosts no hostbasedauthentication no identitiesonly no kbdinteractiveauthentication yes nohostauthenticationforlocalhost no passwordauthentication yes permitlocalcommand no proxyusefdpass no pubkeyauthentication yes requesttty auto sessiontype default stdinnull no forkafterauthentication no streamlocalbindunlink no stricthostkeychecking ask tcpkeepalive yes tunnel false verifyhostkeydns false visualhostkey no updatehostkeys true canonicalizemaxdots 1 connectionattempts 1 forwardx11timeout 1200 numberofpasswordprompts 3 serveralivecountmax 3 serveraliveinterval 0 ciphers aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 hostbasedacceptedalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512 casignaturealgorithms ecdsa-sha2-nistp256,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-256,rsa-sha2-512 loglevel INFO macs hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512 securitykeyprovider internal pubkeyacceptedalgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-v01@openssh.com xauthlocation /usr/bin/xauth identityfile ~/.ssh/id_rsa identityfile ~/.ssh/id_dsa identityfile ~/.ssh/id_ecdsa identityfile ~/.ssh/id_ecdsa_sk identityfile ~/.ssh/id_ed25519 identityfile ~/.ssh/id_ed25519_sk identityfile ~/.ssh/id_xmss canonicaldomains none globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 userknownhostsfile /root/.ssh/known_hosts /root/.ssh/known_hosts2 sendenv LANG sendenv LC_CTYPE sendenv LC_NUMERIC sendenv LC_TIME sendenv LC_COLLATE sendenv LC_MONETARY sendenv LC_MESSAGES sendenv LC_PAPER sendenv LC_NAME sendenv LC_ADDRESS sendenv LC_TELEPHONE sendenv LC_MEASUREMENT sendenv LC_IDENTIFICATION sendenv LC_ALL sendenv LANGUAGE sendenv XMODIFIERS logverbose none permitremoteopen any addkeystoagent false forwardagent no connecttimeout none tunneldevice any:any canonicalizePermittedcnames none controlpersist no escapechar ~ ipqos af21 cs1 rekeylimit 0 0 streamlocalbindmask 0177 syslogfacility USER STDERR: Pseudo-terminal will not be allocated because stdin is not a terminal. TASK [Run third ssh in test mode to evaluate the configuration] **************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:74 Sunday 28 May 2023 09:25:38 +0000 (0:00:00.250) 0:00:09.450 ************ ok: [sut] => { "changed": false, "cmd": [ "ssh", "-G", "remote" ], "delta": "0:00:00.007920", "end": "2023-05-28 09:25:38.950103", "rc": 0, "start": "2023-05-28 09:25:38.942183" } STDOUT: user root hostname remote.example.com port 22 addressfamily any batchmode no canonicalizefallbacklocal yes canonicalizehostname false checkhostip no compression no controlmaster false enablesshkeysign no clearallforwardings no exitonforwardfailure no fingerprinthash SHA256 forwardx11 no forwardx11trusted yes gatewayports no gssapiauthentication yes gssapikeyexchange no gssapidelegatecredentials no gssapitrustdns no gssapirenewalforcesrekey no gssapikexalgorithms gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512- hashknownhosts no hostbasedauthentication no identitiesonly no kbdinteractiveauthentication yes nohostauthenticationforlocalhost no passwordauthentication yes permitlocalcommand no proxyusefdpass no pubkeyauthentication yes requesttty auto sessiontype default stdinnull no forkafterauthentication no streamlocalbindunlink no stricthostkeychecking ask tcpkeepalive yes tunnel false verifyhostkeydns false visualhostkey no updatehostkeys true canonicalizemaxdots 1 connectionattempts 1 forwardx11timeout 1200 numberofpasswordprompts 3 serveralivecountmax 3 serveraliveinterval 0 ciphers aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 hostbasedacceptedalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512 casignaturealgorithms ecdsa-sha2-nistp256,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-256,rsa-sha2-512 loglevel INFO macs hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512 securitykeyprovider internal pubkeyacceptedalgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-v01@openssh.com xauthlocation /usr/bin/xauth identityfile ~/.ssh/id_rsa identityfile ~/.ssh/id_dsa identityfile ~/.ssh/id_ecdsa identityfile ~/.ssh/id_ecdsa_sk identityfile ~/.ssh/id_ed25519 identityfile ~/.ssh/id_ed25519_sk identityfile ~/.ssh/id_xmss canonicaldomains none globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 userknownhostsfile /root/.ssh/known_hosts /root/.ssh/known_hosts2 sendenv LANG sendenv LC_CTYPE sendenv LC_NUMERIC sendenv LC_TIME sendenv LC_COLLATE sendenv LC_MONETARY sendenv LC_MESSAGES sendenv LC_PAPER sendenv LC_NAME sendenv LC_ADDRESS sendenv LC_TELEPHONE sendenv LC_MEASUREMENT sendenv LC_IDENTIFICATION sendenv LC_ALL sendenv LANGUAGE sendenv XMODIFIERS logverbose none permitremoteopen any addkeystoagent false forwardagent no connecttimeout none tunneldevice any:any canonicalizePermittedcnames none controlpersist no escapechar ~ ipqos af21 cs1 rekeylimit 0 0 streamlocalbindmask 0177 syslogfacility USER STDERR: Pseudo-terminal will not be allocated because stdin is not a terminal. TASK [Verify the options are correctly evaluated] ****************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:79 Sunday 28 May 2023 09:25:38 +0000 (0:00:00.244) 0:00:09.695 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore configuration files] ********************************************* task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:95 Sunday 28 May 2023 09:25:39 +0000 (0:00:00.058) 0:00:09.754 ************ included: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/restore.yml for sut TASK [Restore backed up files and remove what was not present] ***************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/restore.yml:2 Sunday 28 May 2023 09:25:39 +0000 (0:00:00.021) 0:00:09.776 ************ ok: [sut] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.6xudoadj//etc/ssh/ssh_config.d/00-ansible.conf; then\n cp /tmp/ansible.6xudoadj//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.005123", "end": "2023-05-28 09:25:39.283643", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2023-05-28 09:25:39.278520" } ok: [sut] => (item=/etc/ssh/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.6xudoadj//etc/ssh/ssh_config; then\n cp /tmp/ansible.6xudoadj//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.006730", "end": "2023-05-28 09:25:39.500987", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2023-05-28 09:25:39.494257" } TASK [Remove temporary directory for backup files] ***************************** task path: /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/restore.yml:15 Sunday 28 May 2023 09:25:39 +0000 (0:00:00.474) 0:00:10.251 ************ ok: [sut] => { "changed": false, "path": "/tmp/ansible.6xudoadj", "state": "absent" } PLAY RECAP ********************************************************************* sut : ok=20 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Sunday 28 May 2023 09:25:39 +0000 (0:00:00.389) 0:00:10.640 ************ =============================================================================== Make sure openssh is installed before creating backup ------------------- 2.48s /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/setup.yml:7 ------------------------ fedora.linux_system_roles.ssh : Ensure required packages are installed --- 2.33s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.28s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.94s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:2 ------------------------ Backup files ------------------------------------------------------------ 0.59s /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/backup.yml:13 ---------------------- Restore backed up files and remove what was not present ----------------- 0.47s /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/restore.yml:2 ---------------------- Remove temporary directory for backup files ----------------------------- 0.39s /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/restore.yml:15 --------------------- fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.38s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Download the custom configuration file ---------------------------------- 0.35s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:43 ----------------------- Create a temporary directory for backup files --------------------------- 0.32s /WORKDIR/git-weekly-cidx1hzk9d/tests/tasks/backup.yml:5 ----------------------- Run second ssh in test mode to evaluate the configuration --------------- 0.25s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:69 ----------------------- Run third ssh in test mode to evaluate the configuration ---------------- 0.24s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:74 ----------------------- Run first ssh in test mode to evaluate the configuration ---------------- 0.24s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:64 ----------------------- Verify the options are correctly evaluated ------------------------------ 0.06s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:79 ----------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Run role ---------------------------------------------------------------- 0.05s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:14 ----------------------- Verify the options are in the file -------------------------------------- 0.04s /WORKDIR/git-weekly-cidx1hzk9d/tests/tests_match.yml:48 ----------------------- fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.03s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.03s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 fedora.linux_system_roles.ssh : Gather information about the user for user configuration --- 0.03s /WORKDIR/git-weekly-cidx1hzk9d/.collection/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:10 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---