problem whit this :
(as you could see I have no problem with my "test3" but "s65" is unreachable !
smh@s2:~$ ansible -m ping all
s65 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).",
"unreachable": true
}
[DEPRECATION WARNING]: Distribution Ubuntu 20.04 on host test3 should use /usr/bin/python3,
but is using /usr/bin/python for backward compatibility with prior Ansible releases. A
future Ansible release will default to using the discovered platform python for this host.
See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
test3 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"ping": "pong"
}
Can you ssh to s65?
Обсуждают сегодня