Where is this file? Instructor opened an automatically generated /etc/ansible/hosts file but there is no such file in Mac OSX after ansible is installed?
Am I supposed to create this file myself or it is automatically generated? as I cannot find it on Mac OSX after
We don’t bother with the /etc/ansible/hosts file because we installed ansible in a different directory. So we always specify which host file to use in our run. I.e. when in the ansible directory I execute:
Referenced here in order at what ansible looks for…personally I never use /etc/ansible/ansible.cfg and tend to use a master one in ~/ or ansible.cfg per project directory which specifies other certain criteria I need for my playbook