Ansible Inventory

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 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