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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -