1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix instance=None documentation

This commit is contained in:
Brian Coca 2015-02-18 13:32:50 -05:00 committed by Matt Clay
parent cd7f498755
commit 70856d5228

View file

@ -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