summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtlas Health <github@atlashealth.com>2014-04-04 09:38:49 -0700
committerMichael DeHaan <michael@ansible.com>2014-04-29 17:13:25 -0400
commit49d0ad064483e8ec881472128969714214c4eff4 (patch)
tree2e3e384cd7e203c61bfaa6f78fc9cd7454a2179c
parent4258eb6be7f6114cc7b48797365ecb85d1b69a80 (diff)
downloadansible-49d0ad064483e8ec881472128969714214c4eff4.tar.gz
added example
-rw-r--r--library/cloud/ec2_snapshot11
1 files changed, 10 insertions, 1 deletions
diff --git a/library/cloud/ec2_snapshot b/library/cloud/ec2_snapshot
index 4f5965feb6..64ac0d46b9 100644
--- a/library/cloud/ec2_snapshot
+++ b/library/cloud/ec2_snapshot
@@ -68,7 +68,7 @@ options:
version_added: "1.6"
snapshot_tags:
description:
- - a hash/dictionary of tags to add to the snapshot; '{"key":"value"}' and '{"key":"value","key":"value"}'
+ - a hash/dictionary of tags to add to the snapshot
required: false
default: null
aliases: []
@@ -91,6 +91,15 @@ EXAMPLES = '''
instance_id: i-12345678
device_name: /dev/sdb1
description: snapshot of /data from DB123 taken 2013/11/28 12:18:32
+
+# Snapshot of volume with tagging
+- local_action:
+ module: ec2_snapshot
+ instance_id: i-12345678
+ device_name: /dev/sdb1
+ snapshot_tags:
+ frequency: hourly
+ source: /data
'''
import sys