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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -