From 5c06bb6dca5b54f6f4339bc03db701fa5b269f79 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sun, 26 Oct 2014 16:26:33 -0400 Subject: [PATCH] ec2_snapshot: document wait, wait_timeout params Document the wait and wait_timeout params for ec2_snapshot. This is important because snapshots can take a long time to complete, and the module defaults to wait=yes. --- lib/ansible/modules/cloud/ec2_snapshot.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ec2_snapshot.py b/lib/ansible/modules/cloud/ec2_snapshot.py index a37aadb95e..4c21ae6ff7 100644 --- a/lib/ansible/modules/cloud/ec2_snapshot.py +++ b/lib/ansible/modules/cloud/ec2_snapshot.py @@ -48,7 +48,20 @@ options: - a hash/dictionary of tags to add to the snapshot required: false version_added: "1.6" - + wait: + description: + - wait for the snapshot to be ready + choices: ['yes', 'no'] + required: false + default: yes + version_added: "1.5.1" + wait_timeout: + description: + - how long before wait gives up, in seconds + - specify 0 to wait forever + required: false + default: 0 + version_added: "1.5.1" author: Will Thames extends_documentation_fragment: aws '''