Ansible is used for managing multiple servers in the Infrastructure. The collection of hosts is known as “Ansible Inventory”.
An inventory is a text file listing hostnames usually grouped by functionality.
Recommendations on the Inventory
Give inventory nodes a human-friendly name rather than just putting the IP addresses or DNS hostnames.
Always group the resources of similar functionality/function.
Maintain accurate information in the inventory file by having a single source of truth (if using static inventories).
Types of Ansible Inventories: