O'Reilly logo
  • sw hii thinks this is interesting:

If you do not explicitly specify any inventory file to Ansible, it will take the default path from the host_file parameter of ansible.cfg, which defaults to /etc/ansible/hosts.


Cover of Learning Ansible 2 - Second Edition


Before Ansible 1.9, "host_file" should instead read as "hostfile."

Ansible 1.9 changed this name to "inventory."