From 70856d5228b778df7eb9e334463cacfe479b32b8 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 18 Feb 2015 13:32:50 -0500 Subject: [PATCH] fix instance=None documentation --- lib/ansible/modules/cloud/amazon/ec2_vol.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vol.py b/lib/ansible/modules/cloud/amazon/ec2_vol.py index 7fd58fa5348..01a539ae4b0 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vol.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vol.py @@ -24,9 +24,9 @@ version_added: "1.1" options: instance: 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 - default: null + default: null aliases: [] name: description: @@ -152,12 +152,12 @@ EXAMPLES = ''' image: "{{ image }}" zone: YYYYYY id: my_instance - wait: yes + wait: yes count: 1 register: ec2 - ec2_vol: - instance: "{{ item.id }}" + instance: "{{ item.id }}" name: my_existing_volume_Name_tag device_name: /dev/xvdf with_items: ec2.instances @@ -168,7 +168,7 @@ EXAMPLES = ''' id: vol-XXXXXXXX state: absent -# Detach a volume +# Detach a volume (since 1.9) - ec2_vol: id: vol-XXXXXXXX instance: None @@ -177,7 +177,7 @@ EXAMPLES = ''' - ec2_vol: instance: i-XXXXXX state: list - + # Create new volume using SSD storage - ec2_vol: instance: XXXXXX