Can we see the yaml syntax and the -vvvv output for the failed task?
On Mar 25, 2014, at 1:44 PM, [email protected] wrote:
> Is anyone else having issues with this feature. If the host key is on the
> machine my Ansible git checkout works perfectly.
>
> If the host key isn't on the box and even with accept_hostkey=yes the
> checkout fails. I'm on Ansible 1.5.2
>
> Error is also ambiguous as it says set accept_hostkey to True!!
>
> TASK: [webservers | checkout the site]
> ****************************************
> failed: [app01] => {"failed": true, "item": ""}
> msg: intro.repositoryhosting.com has an unknown hostkey. Set accept_hostkey
> to True or manually add the hostkey prior to running the git module
>
> FATAL: all hosts have already failed -- aborting
>
>
>
> On Saturday, January 11, 2014 4:34:12 PM UTC, James Tanner wrote:
> I created a new feature in the git module to help with hostkey
> management and prevent task hangs with unknown keys:
>
> https://github.com/ansible/ansible/commit/8665b0638a1d3a70f985126b0f007a26c81273cb
>
> https://github.com/ansible/ansible/commit/eeee1e1c5aa9dd4f84175966e0f9e467fd7fc600
>
>
> The module should fail early on if the hostkey is unknown instead of
> hanging indefinitely.
>
> If the user adds "accept_hostkey=yes" to the git parameters, the key
> will be automatically
> added to the known_hosts file.
>
> Hopefully this makes the git module easier for our new users.
>
> --
> 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/6bb95a06-bc62-4745-9466-8ea5778698ae%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
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/2DEF0A16-99BC-4BC3-A9D8-9AA6D65299C8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.