EC2 Inventory plugin AND

166 views
Skip to first unread message

Daniel Richardson

unread,
Feb 24, 2015, 6:46:24 PM2/24/15
to ansible...@googlegroups.com
Is there any way to use AND in the instance_filters parameter instead of OR?

For instance I would like to be able to filter on
tag:env=stage
AND
tag:Owner=me

Chris Church

unread,
Feb 26, 2015, 1:12:45 AM2/26/15
to ansible...@googlegroups.com
Not at the moment.  It's possible via boto and the EC2 API.  I'd propose using a syntax such as: 

instance_filters = tag:env=stage&tag:Owner=me



--
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/be3d35af-c239-4209-a548-c658d07a40a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Timothy Gerla

unread,
Mar 8, 2015, 9:54:37 PM3/8/15
to ansible-project
Hi Chris and Daniel,

I took a stab at implementing this: https://github.com/ansible/ansible/pull/10413

Comments appreciated!

-Tim

Reply all
Reply to author
Forward
0 new messages