I find this works well:
- pause: seconds=15
- name: wait for ssh
wait_for: port=22 timeout=600
Without the pause, I find that wait_for alone often fails. Pausing less
than 15 seconds usually fails, too.
On Friday, June 27, 2014 at 9:06:55 AM UTC-7, Slim Slam wrote:
>
> Quite proba
Quite probably it's the EIP since it worked ok before I added it. On the
documentation page for
the ansible ec2-eip module, it says:
"There may be a delay between the time the Elastic IP is assigned and when
the cloud instance is reachable via the new address. Use wait_for and pause
to delay fu
Perhaps it's taking longer because an EIP is involved, apologies as my
previous info-sharing was based on general SSH experiments.
Could it be that the EIP itself is not yet ready?
On Fri, Jun 27, 2014 at 11:29 AM, Slim Slam wrote:
> It's still not working. I even made the pause 10 seconds (
It's still not working. I even made the pause 10 seconds (see below). SSH
still doesn't work
until maybe 30 seconds later. I'm launching an m3large instance and I'm only
using the Amazon Linux base (no customization). AMI: ami-7c807d14
Any ideas?
J
- name: Tie elastic IP to the instance