I’m trying to figure out a way to reuse the same auth file for multiple windows hosts. It seems that when you specify a windows host in a playbook, such as [windows-webserver], it automatically looks for a file ‘group_vars/windows_webserver.yml’ for credentials. What if I have several hosts that all use the same credentials? Like…
[windows-webserver]
[windows-backend]
[windows-database]
It looks like Ansible needs a separate file for each of these with corresponding names under group_vars in order to authenticate - is this correct? Is there any way to centralize to a single auth file for all Windows hosts if they all have the same credentials?
Much appreciated,
-Joe