Spin Up Jenkins on AWS instance

24 views
Skip to first unread message

Liora Milbaum

unread,
Sep 7, 2016, 4:33:54 PM9/7/16
to Ansible Project
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

rup

unread,
Sep 8, 2016, 1:25:42 PM9/8/16
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages