diff options
author | Lester Wade <lwade@firefly.home.net> | 2013-06-14 20:11:07 +0400 |
---|---|---|
committer | Lester Wade <lwade@firefly.home.net> | 2013-06-14 20:11:07 +0400 |
commit | 5954ba840757d48ddbb20e09eed2f763af703bea (patch) | |
tree | 44e4f398825f4b131b95e698c9251620dd9d355a /language_features | |
parent | 6896742fd1d5c1cc26db673b31eddc2ae6736f7c (diff) |
Add wait_for to the example to ensure a machine has booted.
Diffstat (limited to 'language_features')
-rw-r--r-- | language_features/eucalyptus-ec2.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/language_features/eucalyptus-ec2.yml b/language_features/eucalyptus-ec2.yml index c8fe338..796b203 100644 --- a/language_features/eucalyptus-ec2.yml +++ b/language_features/eucalyptus-ec2.yml @@ -30,6 +30,10 @@ local_action: add_host hostname={{item.public_ip}} groupname=deploy with_items: ${ec2.instances} + - name: Wait for the instances to boot by checking the ssh port + local_action: wait_for host={{item.public_dns_name}} port=22 delay=60 timeout=320 state=started + with_items: ${ec2.instances} + # Use the ec2_vol module to create volumes for attachment to each instance. Use with_items to attach to each instance (by returned id) launched previously. - name: Create a volume and attach |