Just want to make sure you've considered add_host
http://docs.ansible.com/ansible/add_host_module.html


On 12 April 2016 at 14:39, Larry Fast <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/ansible-project/88a2323f-8fcc-4dec-b372-80a9ad31114a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Steve

-- 
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/CA%2Bemtqtu4OBqFhkMtWYXi7TYBAVyusP9KMibUBEFvg7oXQ2P%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to