ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_regenerate_defaults.yml **************************************** 1 plays in /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml PLAY [Regenerate default configuration file] *********************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml:2 ok: [managed-node1] META: ran handlers META: end_host conditional evaluated to false, continuing execution for managed-node1 TASK [Backup configuration files] ********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml:15 included: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml for managed-node1 TASK [Setup] ******************************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:2 included: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml for managed-node1 TASK [Ensure facts used by test] *********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:2 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 ok: [managed-node1] => {"changed": false, "stat": {"exists": false}} TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:15 ok: [managed-node1] => {"ansible_facts": {"__ssh_is_ostree": false}, "changed": false} TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 ok: [managed-node1] => {"changed": false, "msg": "", "rc": 0, "results": ["openssh-clients-7.4p1-23.el7_9.x86_64 providing openssh-clients is already installed"]} TASK [Define common variables] ************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:31 ok: [managed-node1] => {"ansible_facts": {"main_ssh_config": "/etc/ssh/ssh_config", "main_ssh_config_name": "ssh_config", "main_ssh_config_path": "/etc/ssh/"}, "changed": false} TASK [Define specific variables] *********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:37 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Create a temporary directory for backup files] *************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 ok: [managed-node1] => {"changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.fiQeHc", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Backup files] ************************************************************ task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 ok: [managed-node1] => (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.fiQeHc/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp -a /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.fiQeHc/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003271", "end": "2024-09-24 15:35:56.321631", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2024-09-24 15:35:56.318360", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} ok: [managed-node1] => (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.fiQeHc/$(dirname /etc/ssh/ssh_config);\n cp -a /etc/ssh/ssh_config /tmp/ansible.fiQeHc/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007520", "end": "2024-09-24 15:35:56.777455", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2024-09-24 15:35:56.769935", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Record default values from configuration file] *************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml:18 ok: [managed-node1] => {"changed": false, "cmd": ["ssh", "-G", "localhost", "-F", "/etc/ssh/ssh_config"], "delta": "0:00:00.009493", "end": "2024-09-24 15:35:57.113526", "rc": 0, "start": "2024-09-24 15:35:57.104033", "stderr": "", "stderr_lines": [], "stdout": "user root\nhostname localhost\nport 22\naddressfamily any\nbatchmode no\ncanonicalizefallbacklocal yes\ncanonicalizehostname false\nchallengeresponseauthentication yes\ncheckhostip yes\ncompression no\ncontrolmaster false\nenablesshkeysign no\nclearallforwardings no\nexitonforwardfailure no\nforwardagent no\nforwardx11 no\nforwardx11trusted yes\ngatewayports no\ngssapiauthentication yes\ngssapidelegatecredentials no\nhashknownhosts no\nhostbasedauthentication no\nidentitiesonly no\nkbdinteractiveauthentication yes\nnohostauthenticationforlocalhost no\npasswordauthentication yes\npermitlocalcommand no\nprotocol 2\nproxyusefdpass no\npubkeyauthentication yes\nrequesttty auto\nrhostsrsaauthentication no\nrsaauthentication yes\nstreamlocalbindunlink no\nstricthostkeychecking ask\ntcpkeepalive yes\ntunnel false\nuseprivilegedport no\nverifyhostkeydns false\nvisualhostkey no\nupdatehostkeys false\ncanonicalizemaxdots 1\ncompressionlevel 6\nconnectionattempts 1\nforwardx11timeout 1200\nnumberofpasswordprompts 3\nserveralivecountmax 3\nserveraliveinterval 0\nciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc\nhostkeyalgorithms ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss\nhostbasedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss\nkexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\nloglevel INFO\nmacs umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\npubkeyacceptedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss\nxauthlocation /usr/bin/xauth\nidentityfile ~/.ssh/id_rsa\nidentityfile ~/.ssh/id_dsa\nidentityfile ~/.ssh/id_ecdsa\nidentityfile ~/.ssh/id_ed25519\ncanonicaldomains\nglobalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2\nuserknownhostsfile ~/.ssh/known_hosts ~/.ssh/known_hosts2\nsendenv LANG\nsendenv LC_CTYPE\nsendenv LC_NUMERIC\nsendenv LC_TIME\nsendenv LC_COLLATE\nsendenv LC_MONETARY\nsendenv LC_MESSAGES\nsendenv LC_PAPER\nsendenv LC_NAME\nsendenv LC_ADDRESS\nsendenv LC_TELEPHONE\nsendenv LC_MEASUREMENT\nsendenv LC_IDENTIFICATION\nsendenv LC_ALL\nsendenv LANGUAGE\nsendenv XMODIFIERS\nfingerprinthash SHA256 MD5\nconnecttimeout none\ntunneldevice any:any\ncontrolpersist no\nescapechar ~\nipqos lowdelay throughput\nrekeylimit 0 0\nstreamlocalbindmask 0177", "stdout_lines": ["user root", "hostname localhost", "port 22", "addressfamily any", "batchmode no", "canonicalizefallbacklocal yes", "canonicalizehostname false", "challengeresponseauthentication yes", "checkhostip yes", "compression no", "controlmaster false", "enablesshkeysign no", "clearallforwardings no", "exitonforwardfailure no", "forwardagent no", "forwardx11 no", "forwardx11trusted yes", "gatewayports no", "gssapiauthentication yes", "gssapidelegatecredentials no", "hashknownhosts no", "hostbasedauthentication no", "identitiesonly no", "kbdinteractiveauthentication yes", "nohostauthenticationforlocalhost no", "passwordauthentication yes", "permitlocalcommand no", "protocol 2", "proxyusefdpass no", "pubkeyauthentication yes", "requesttty auto", "rhostsrsaauthentication no", "rsaauthentication yes", "streamlocalbindunlink no", "stricthostkeychecking ask", "tcpkeepalive yes", "tunnel false", "useprivilegedport no", "verifyhostkeydns false", "visualhostkey no", "updatehostkeys false", "canonicalizemaxdots 1", "compressionlevel 6", "connectionattempts 1", "forwardx11timeout 1200", "numberofpasswordprompts 3", "serveralivecountmax 3", "serveraliveinterval 0", "ciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc", "hostkeyalgorithms ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss", "hostbasedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss", "kexalgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1", "loglevel INFO", "macs umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1", "pubkeyacceptedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss", "xauthlocation /usr/bin/xauth", "identityfile ~/.ssh/id_rsa", "identityfile ~/.ssh/id_dsa", "identityfile ~/.ssh/id_ecdsa", "identityfile ~/.ssh/id_ed25519", "canonicaldomains", "globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2", "userknownhostsfile ~/.ssh/known_hosts ~/.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", "fingerprinthash SHA256 MD5", "connecttimeout none", "tunneldevice any:any", "controlpersist no", "escapechar ~", "ipqos lowdelay throughput", "rekeylimit 0 0", "streamlocalbindmask 0177"]} TASK [Truncate configuration file] ********************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml:23 changed: [managed-node1] => {"changed": true, "path": "/etc/ssh/ssh_config", "state": "absent"} TASK [Run role] **************************************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml:28 ERROR! the role 'fedora.linux_system_roles.ssh' was not found in /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh The error appears to be in '/tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_regenerate_defaults.yml': line 30, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.ssh ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=11 changed=1 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0