# Ansible Inventory

**URL:** <https://forum.ansible.com/t/ansible-inventory/25342>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 27, 2017, 4:08pm UTC](https://forum.ansible.com/t/ansible-inventory/25342 "2017-08-27T16:08:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanju](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Sanju](https://forum.ansible.com/u/Sanju)\
**Post date:** [August 27, 2017, 4:08pm UTC](https://forum.ansible.com/t/ansible-inventory/25342/1 "2017-08-27T16:08:17Z")

</div>

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](http://linux.com) ansible\_connection=ssh  
[windows.com](http://windows.com) ansible\_connection=winrm

What can I do to address this situation?

Thanks

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [August 27, 2017, 4:42pm UTC](https://forum.ansible.com/t/ansible-inventory/25342/2 "2017-08-27T16:42:38Z")

</div>

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](http://docs.ansible.com/ansible/latest/intro_inventory.html#splitting-out-host-and-group-specific-data)
