pip - where to create ansible hosts file in virtualenv? -
i installed ansible pip virtualenv, didn't find hosts file.
i have 1 /etc/ansible/hosts
, related global install of ansible on system.
you can create inventory file anywhere like.
just point ansible via -i /path/to/inventory
parameter or setting:
[defaults] inventory = /path/to/inventory
in local ansible.cfg
file.
ansible searches config file here (in order):
- ansible_config (an environment variable)
- ansible.cfg (in current directory)
- .ansible.cfg (in home directory)
- /etc/ansible/ansible.cfg
Comments
Post a Comment