On Saturday, May 5, 2018 at 6:57:33 PM UTC-4, Karl Auer wrote:
>
> I've tried a LOT of things now, and have come to the conclusion that 
> ec2_instance_facts requires a literal filter name, at least in the case 
> of "tags:Name".
>
> This makes that filter essentially useless :-(
>
> Please, can someone tell me I'm wrong, and how me how to filter on a 
> tag:value pair passed in as a variable?
>

    - ec2_instance_facts:
        filters: "{{ { tag_name: tag_value } }}"


 

-- 
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/38b14171-3086-4c2d-868f-de3882384090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to