On 16/01/2015 02:32, zixu mo wrote:
> Can we put /etc/ansible/hosts file in other place?
>
> such as /home/tomy/ansible/hosts
>
> ?
As stated by Tom, you can use -i but you can also change your
~/.ansible.cfg :
[defaults]
# location of inventory file, eliminates need to specify -i
hostfile = /home/tomy/ansible/hosts
Note that you can put a .ansible.cfg file in your "projects" directory,
so you can ahave a "per-project" specific inventory.
M
--
Michel Blanc
{ :github => "@leucos", :twitter => "@b9m", :gpg => "0X24B35C22" }
--
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/54B9435C.7020907%40mbnet.fr.
For more options, visit https://groups.google.com/d/optout.