|
|
@ -91,7 +91,7 @@ options:
|
|
|
|
- ramdisk I(eri) to use for the instance
|
|
|
|
- ramdisk I(eri) to use for the instance
|
|
|
|
wait:
|
|
|
|
wait:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- wait for the instance to reach its desired state before returning. Does not wait for SSH, see 'wait_for' example for details.
|
|
|
|
- wait for the instance to reach its desired state before returning. Does not wait for SSH, see 'wait_for_connection' example for details.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
default: 'no'
|
|
|
|
default: 'no'
|
|
|
|
wait_timeout:
|
|
|
|
wait_timeout:
|
|
|
@ -384,12 +384,10 @@ EXAMPLES = '''
|
|
|
|
with_items: "{{ ec2.instances }}"
|
|
|
|
with_items: "{{ ec2.instances }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Wait for SSH to come up
|
|
|
|
- name: Wait for SSH to come up
|
|
|
|
wait_for:
|
|
|
|
delegate_to: "{{ item.public_dns_name }}"
|
|
|
|
host: "{{ item.public_dns_name }}"
|
|
|
|
wait_for_connection:
|
|
|
|
port: 22
|
|
|
|
|
|
|
|
delay: 60
|
|
|
|
delay: 60
|
|
|
|
timeout: 320
|
|
|
|
timeout: 320
|
|
|
|
state: started
|
|
|
|
|
|
|
|
with_items: "{{ ec2.instances }}"
|
|
|
|
with_items: "{{ ec2.instances }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure instance(s)
|
|
|
|
- name: Configure instance(s)
|
|
|
|