You can place your inventory file(s) anywhere you like. Reference them from
ansible.cfg <http://docs.ansible.com/intro_configuration.html#hostfile>, or
using -i /path/to/inventory
​

On 16 January 2015 at 03:32, zixu mo <[email protected]> wrote:

> Can we put /etc/ansible/hosts file in other place?
>
> such as /home/tomy/ansible/hosts
>
> ?
>
> I would not like to run ansible on my pc with root access.
>
>
>  --
> 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/af24c63c-5817-4acb-8d82-11bfed942f4c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/af24c63c-5817-4acb-8d82-11bfed942f4c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAnNz0Oyu9rKgF%3DyQhv28nNcKQ0us-bqMdM7ozFoUrq-uTuGeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to