EC2 module : dependency between exact_count and count_tag

243 views
Skip to first unread message

casimir Jeanjean

unread,
Aug 8, 2014, 9:51:18 AM8/8/14
to ansible...@googlegroups.com
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.
--
Casimir

Michael DeHaan

unread,
Aug 8, 2014, 7:29:10 PM8/8/14
to ansible...@googlegroups.com
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




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f68f0449-f61f-43e2-9892-29fef7c66fa5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages