I would edit the source code and put a debugger statement inside the if
statement that does the print. This way when running ansible if you
happen to get into this state, you can examine the various data, like
what it thinks the value of host_file is, and then compare that to your
filesystem.
On 2/13/14, 1:47 PM, Ilya Ivanov wrote:
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 <jkeat...@j2solutions.net
<mailto:jkeat...@j2solutions.net>> 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
<https://groups.google.com/d/topic/ansible-project/h-EWByIPDuY/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to
ansible-project+unsubscribe@__googlegroups.com
<mailto:ansible-project%2bunsubscr...@googlegroups.com>.
To post to this group, send email to
ansible-project@googlegroups.__com
<mailto:ansible-project@googlegroups.com>.
For more options, visit https://groups.google.com/__groups/opt_out
<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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
-jlk
--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.