I looked at the code in ssh.py, and I don't understand why you don't take
/etc/ssh/ssh_known_hosts2 under consideration when deciding if the host is
in known_hosts. The only file that is taken under consideration is
$USER/.ssh/known_hosts.
Do you think that including standard locations is a good idea?
...
def not_in_host_file(self, host):
host_file =
os.path.expanduser(os.path.expandvars("~${USER}/.ssh/known_hosts"))
if not os.path.exists(host_file):
print "previous known host file not found"
return True
...
Thanks!
iordan
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5932d737-feef-4124-8895-f31c5d85d59b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.