Inventory — Ansible Documentation
docs.ansible.com › ansible › 2Ansible works against multiple systems in your infrastructure at the same time. It does this by selecting portions of systems listed in Ansible’s inventory file, which defaults to being saved in the location /etc/ansible/hosts. You can specify a different inventory file using the -i <path> option on the command line.
ansible-inventory — Ansible Documentation
docs.ansible.com › cli › ansible-inventoryWhen doing –list, send the inventory to a file instead of to the screen --playbook-dir <BASEDIR> Since this tool does not use playbooks, use this as a substitute playbook directory.This sets the relative path for many features including roles/ group_vars/ etc. --toml Use TOML format instead of default JSON, ignored for –graph --vars