Just adding a comment for the archives
I just ran into this problem using ansible 1.4.4 from cron. I fixed the
issues by running my cron job with
USER=username /usr/bin/ansible .....
it might be better to use
import getpass
....
user_host_file = os.path.expandvars("~{}/.ssh/known_hosts".format(
getpass.getuser()))
although looking at trunk i think the current version would now work from
cron
--
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/4f288b81-3ba0-4cf2-871e-d3485e08ffdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.