|
|
@ -136,12 +136,12 @@ EXAMPLES = '''
|
|
|
|
image: "{{ image }}"
|
|
|
|
image: "{{ image }}"
|
|
|
|
wait: yes
|
|
|
|
wait: yes
|
|
|
|
count: 3
|
|
|
|
count: 3
|
|
|
|
register: ec2
|
|
|
|
register: ec2
|
|
|
|
- ec2_vol:
|
|
|
|
- ec2_vol:
|
|
|
|
instance: "{{ item.id }} "
|
|
|
|
instance: "{{ item.id }} "
|
|
|
|
volume_size: 5
|
|
|
|
volume_size: 5
|
|
|
|
with_items: ec2.instances
|
|
|
|
with_items: ec2.instances
|
|
|
|
register: ec2_vol
|
|
|
|
register: ec2_vol
|
|
|
|
|
|
|
|
|
|
|
|
# Example: Launch an instance and then add a volume if not already present
|
|
|
|
# Example: Launch an instance and then add a volume if not already present
|
|
|
|
# * Nothing will happen if the volume is already attached.
|
|
|
|
# * Nothing will happen if the volume is already attached.
|
|
|
@ -154,7 +154,7 @@ EXAMPLES = '''
|
|
|
|
id: my_instance
|
|
|
|
id: my_instance
|
|
|
|
wait: yes
|
|
|
|
wait: yes
|
|
|
|
count: 1
|
|
|
|
count: 1
|
|
|
|
register: ec2
|
|
|
|
register: ec2
|
|
|
|
|
|
|
|
|
|
|
|
- ec2_vol:
|
|
|
|
- ec2_vol:
|
|
|
|
instance: "{{ item.id }}"
|
|
|
|
instance: "{{ item.id }}"
|
|
|
|