You want group vars (unless your windows and linux hosts are in the same group,
but unless you're applying the same roles to both you probably don't
have that.).

http://docs.ansible.com/ansible/latest/intro_inventory.html#splitting-out-host-and-group-specific-data

On 27 August 2017 at 17:08, Sanju <[email protected]> wrote:
> Hello Folks,
>
> My Inventory has a mix of Linux and windows hosts. Under every group i dont
> want to pass the connection information like ansible_connection=winrm,
> ansible_port=5986 etc.. I want to have a standard location for the
> connection information and I dont want to pass connection info for every
> group as my inventory will have hundreds of groups?
>
> [xxx]
> linux.com ansible_connection=ssh
> windows.com ansible_connection=winrm
>
> What can I do to address this situation?
>
> Thanks
>
> --
> 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/9326b40c-c2fe-4879-a867-5f37ecbe9c8c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

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

Reply via email to