On 10. juli 2016 20:22, Eric Marquez wrote:
How do I get Ansible-play to reference a local hosts files?  I created a hosts 
file in the same directly with my site.yaml file but it doesn't seem to 
reference it.  Is there a way to get it to use a local vs the 
/etc/Ansible/hosts?
I would like to have a local version and not need to update the master with a 
priv account.

In the same directory as your site.yaml and host file, create a ansible.cfg file with the following content:

[defaults]
hostfile      = <name of your hostfile>


--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/57829590.1040506%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to