I'd like to snapshot EC2 volumes only when needed. I couldn't find an
easy solution that didn't require calling out to boto or other tools.
If it exists, please ignore the following :) I wanted to ask here
before opening a feature or pull request.
It could look like this:
- local_action:
module: ec2_snapshot
region: "{{ region }}"
instance_id: "{{ id }}"
device_name: "{{ device }}"
snapshot_tags:
SnapshotCreator: ansible
Host: "{{ server }}"
Device: "{{ device }}"
# new feature, using the snapshot_tags to determine current state
# currently it's "always"
state: present|absent|always
Does this make sense? Currently it's not available but could be
implemented in a backwards compatible way if the default state was
"always."
Thanks
Ted
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/m2bnp2fx9p.fsf%40lifelogs.com.
For more options, visit https://groups.google.com/d/optout.