Alright, so it looks like the only way would be to key off a specifically
formatted group name?
I was hoping to be able to rely on the variable alone. Ideally, an
inventory could look like this (no groups):
server1 loc_name="location1"
server2 loc_name="location1"
server3 loc_name="location2"
server4 loc_name="location3"
server5 loc_name="location3"
server6 loc_name="location3"
But that might be getting away from proper Ansible design.
I appreciate the input you've given, thanks!
On Thursday, March 19, 2015 at 9:32:24 AM UTC-4, Brian Coca wrote:
>
> add an {% if loc.startswith('location') %}
>
>
>
> --
> Brian Coca
>
--
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/705db4e2-fd70-4f74-bec3-4615ca82abf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.