I have a playbook that creates a VPC with multiple subnets which works 
fine.  I then have a playbook that tries to create an ELB and I need to set 
the subnets to 2 of the subnets returned from the vpc creation.  There are 
6 total subnets within the VPC, but two of them have resource_tags set to 
tier:elb.  I only want the 2 subnets with those tags.

I saw a post <https://github.com/ansible/ansible/pull/7051> that said the 
following would work, but I get an invalid subnet ID error.  (look for the 
comments from @coop)

subnets: "{{ vpc.subnets | join(',' attribute='id') }}"

My playbook is almost exactly the same as @coop in the post above, but I 
have 6 subnets instead of 1.  I feel like I should be able to use something 
like the above with a when clause to only get subnets tagged as elb.  Any 
help is appreciated.

-- 
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/a2e130f5-007e-49b3-965f-31810e866efa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to