I think you're asking how to do this with a --limit?

I think you're looking 
for http://docs.ansible.com/ansible/intro_patterns.html.

Here's a syntax I use:

ansible-playbook -i ec2.py -l tag_cluster_database:tag_cluster_web 
common.yml

The ":" does an OR between those two tags (or inventory groups).

On Wednesday, December 28, 2016 at 7:53:30 AM UTC-8, Govardhana M.K. wrote:
>
> I would like to filter the dynamically discovered instances with ec2.py 
> based on 'AND' condition of ec2 tags with instance filters.
>
> only able to achieve OR condition with the syntax as below:
>
> tag:tagkey1=tagvalue1,tag:tagkey2=tagvalue2
>
> Need to filter the output with AND condition
>

-- 
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/ca5b33d7-b32e-4e2d-993f-4e39fa8efbef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to