|
|
|
|
|
by spindritf
4319 days ago
|
|
You can point to the hosts file in ~/.ansible.cfg hostfile = ~/.ansible/hosts
Or, if you run more than one project with multiple servers each, ansible will also read an ansible.config file in the current directory. You can have a separate hosts list, options, and playbooks for each set of servers. Then just cd ~/projects/whatever and ansible will work accordingly.You can put any given set of playbooks and configs into git and share with your team so that everyone is using ansible the same way. And that repo won't even carry any auth info. |
|