Inventory — Ansible Documentation
docs.ansible.com › ansible › 2Dec 01, 2020 · The preferred practice in Ansible is actually not to store variables in the main inventory file. In addition to storing variables directly in the INI file, host and group variables can be stored in individual files relative to the inventory file. These variable files are in YAML format.