But the file exists (and the host is there). What could I do to debug it further?
On Fri, Feb 14, 2014 at 4:29 AM, Jesse Keating <[email protected]>wrote: > On 2/13/14, 12:37 PM, Ilya Ivanov wrote: > >> "previous known host file not found" is an Ansible message. Does anyone >> know the conditions under which is it triggered? >> > > Grepping the code shows it pretty clearly: > > 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" > > This is called when a command is executed. > > It looks to your user's homedir/.ssh/known_hosts and if that file doesn't > exist, it prints that message you're seeing. > > Use of straight ssh will read various config files to determine where the > known_hosts file is, such as /etc/ssh/ssh_config and ~/.ssh/config > > Perhaps in one of those there is a configuration that marks known_hosts as > some other file -- or you have a setting that is preventing ssh from every > even checking for known hosts. Either way, that's where the message comes > from. > > > -jlk > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/h-EWByIPDuY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Ilya. -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
