Thanks Steve. This sounds very much like what I'm trying to do. In my
case I want to enforce some rules, defaults and aliases on a host group
selected via --extra-vars. Thought I would do that with a localhost Play
and set_facts, as you described. If this is the wrong approach I'm happy to
get steered in the right direction. I started looking at dynamic inventory
but this seems to be overkill for my current need. It also feels like the
wrong direction. Another option I'm considering is a jinja2 function. Eg.
- hosts: "{{ myj2func() }}
>
>
>
--
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/88a2323f-8fcc-4dec-b372-80a9ad31114a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.