From 4e4d4370c1058a57d5129f7445ec002e67c18796 Mon Sep 17 00:00:00 2001 From: Atlas Health Date: Fri, 4 Apr 2014 09:38:49 -0700 Subject: [PATCH] added example --- cloud/ec2_snapshot | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cloud/ec2_snapshot b/cloud/ec2_snapshot index 4f5965feb65..64ac0d46b92 100644 --- a/cloud/ec2_snapshot +++ b/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