I have a playbook that fires up some ec2 instances in multiple subnets 
using exact_count and count_tag to control how many instances are created. 
I'm using when to loop over the subnets I want to use - in this particular 
case, there are 2 subnets in different availability zones, and I want to 
create one instance in each AZ.

The problem is that if I set exact_count to 1, ansible creates the first 
instance and then doesn't create the second instance in the second subnet 
as exact_count is already reached. If I change exact_count to 2, it will 
create 2 instances but they're in the same subnet. Basically, the loop is 
irrelevant.

Is there any way around this issue?

Thanks,
Guy

-- 
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/cdda1cb4-c274-4503-a0d4-9af7eef16f29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to