From f0704159ae52ce35a8a01b8cf17970d859d57f5f Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 11 Mar 2014 12:01:57 -0400 Subject: [PATCH] Update docstrings in ec2_vol --- library/cloud/ec2_vol | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/library/cloud/ec2_vol b/library/cloud/ec2_vol index 42ec3cb8732..176fb30ec2e 100644 --- a/library/cloud/ec2_vol +++ b/library/cloud/ec2_vol @@ -52,12 +52,14 @@ options: required: false default: null aliases: [] + version_added: "1.6" id: description: - volume id if you wish to attach an existing volume (requires instance) required: false default: null aliases: [] + version_added: "1.6" volume_size: description: - size of volume (in GB) to create. @@ -158,9 +160,10 @@ EXAMPLES = ''' with_items: ec2.instances register: ec2_vol -# Idempotent playbook example combined with single instance launch -# Volume must exist in the same zone; will not do anything if it is -# already attached. +# Example: Launch an instance and then add a volue if not already present +# * Nothing will happen if the volume is already attached. +# * Volume must exist in the same zone. + - local_action: module: ec2 keypair: "{{ keypair }}"