Inventories in INI or YAML format
You can create inventories in eitherINIfiles or inYAML.
In most cases, such as the example in the preceding steps,INIfiles are straightforward and easy to read for a small number of managed nodes.
Creating an inventory inYAMLformat becomes a sensible option as the number of managed nodes increases.
For example, the following is an equivalent of theinventory.inithat declares unique names for managed nodes and uses theansible_hostfield: