fix instance=None documentation

reviewable/pr18780/r1
Brian Coca 10 years ago
parent 344d6dd377
commit 53ef859ae4

@ -24,9 +24,9 @@ version_added: "1.1"
options: options:
instance: instance:
description: description:
- instance ID if you wish to attach the volume. - instance ID if you wish to attach the volume. Since 1.9 you can set to None to detach.
required: false required: false
default: null default: null
aliases: [] aliases: []
name: name:
description: description:
@ -152,12 +152,12 @@ EXAMPLES = '''
image: "{{ image }}" image: "{{ image }}"
zone: YYYYYY zone: YYYYYY
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 }}"
name: my_existing_volume_Name_tag name: my_existing_volume_Name_tag
device_name: /dev/xvdf device_name: /dev/xvdf
with_items: ec2.instances with_items: ec2.instances
@ -168,7 +168,7 @@ EXAMPLES = '''
id: vol-XXXXXXXX id: vol-XXXXXXXX
state: absent state: absent
# Detach a volume # Detach a volume (since 1.9)
- ec2_vol: - ec2_vol:
id: vol-XXXXXXXX id: vol-XXXXXXXX
instance: None instance: None
@ -177,7 +177,7 @@ EXAMPLES = '''
- ec2_vol: - ec2_vol:
instance: i-XXXXXX instance: i-XXXXXX
state: list state: list
# Create new volume using SSD storage # Create new volume using SSD storage
- ec2_vol: - ec2_vol:
instance: XXXXXX instance: XXXXXX

Loading…
Cancel
Save