inventory

The list of hosts Ansible may manage, arranged into groups and optionally carrying variables for each host or group.

In more detail

Every command and every play starts by choosing hosts from it with a pattern. It can be a static file you write, in INI or YAML form, or a dynamic source such as a script or plugin that asks a cloud provider. The inventory setting in ansible.cfg says where it lives, and the -i flag points a command at a different one. Several sources can be passed at once and are merged in order.

Related terms

Taught in

References

Certification courses