Hi everyone,
In one of my plays, in a EC2 action, I used the “exact_count” parameter and forgot to specify “count_tag”. Ansible tried to kill one of my EC2 machines randomly (fortunately it had API termination disabled).
In such case, as exact_count and count_tag are dependent of each other (according to the doc), shouldn’t the task have failed and told me “count_tag” was missing ? Or are there any use cases for exact_count alone ?
Thank you in advance.
Ouch, absolutely should have.
There’s a flag “required_together” in the argument spec that can be used for this.
Can you please file a ticket in GitHub so we can take care of this one?
Random killing of nodes is definitely not something we wish to encourage! Sometimes nodes deserve it though, but not this time.
–Michael