ec2.ini instance_filters with AND condition

356 views
Skip to first unread message

Michele Viviani

unread,
Apr 13, 2015, 8:05:06 PM4/13/15
to ansible...@googlegroups.com
All,
I'm newbie in ansible and I wuold like to create an AWS dynamic inventory with some filters on.
in the doc I see that we can specify more filters condition, separated by comma, but that will work in OR condition.
-------------------
# Retrieve only t1.micro instances OR instances with tag env=stage
# instance_filters = instance-type=t1.micro,tag:env=stage
-------------------
How to create a filter with AND condition

# Retrieve only t1.micro instances AND instances with tag env=stage

 
Thanks
MIke Halof

Timothy Gerla

unread,
Apr 13, 2015, 8:06:29 PM4/13/15
to ansible-project
Hi Mike,

I implemented this here:


Want to test it out and comment on the pull request with your results?

-Tim

--
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/fd4b8f6d-6f83-44ad-b384-fe1f23475c3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages