suggest having "allow_destroy" tag in ec2_module to prevent accidental deletion of servers

4 views
Skip to first unread message

Kesten Broughton

unread,
Sep 14, 2015, 12:05:27 PM9/14/15
to Ansible Project

I separate my creation and provisioning into aws.yml and site.yml.

Often we start with a few servers and then increase the size of a cluster later.
I'd like to use aws exact_count in the aws.yml so that it is idempotent but I do not want to allow destructive behavior.
It would be nice if we could pass allow_destroy to ec2_module so that exact_count would have "at least" semantics.

It can be pretty dangerous if you forget to limit the playbook correctly and accidentally delete a bunch of servers because your scope was too large.

I think non-destructive behaviour as a default would have avoided this situation as well.

Would a pr for this be considered?
 
Kesten Broughton
512 701 4209
Reply all
Reply to author
Forward
0 new messages