Sometimes it's a matter of timing.  If it's sporadically happening, perhaps 
the ssh connection isn't happening within the 10 second default used by 
Ansible.  To override this default you need to specify in your config file.

On Wednesday, September 7, 2016 at 2:33:54 PM UTC-6, Liora Milbaum wrote:
>
> I can provision the ec2 instance but the setup task fails with the message:
> fatal: [54.166.83.128]: UNREACHABLE! => {"changed": false, "msg": "Failed 
> to connect to the host via ssh.", "unreachable": true}
>
> Any idea how to fix/troubleshoot this issue?
>
> I am newbie to Ansible.
>
> Thanks,
> Liora
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dba6fdc6-d228-48ab-8013-0afe30aaa8ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to