static inventory
An inventory written by hand in a file and committed, suitable when the set of machines changes rarely and on purpose.
In more detail
It is honest about a stable fleet and stale the moment machines appear and disappear on their own, as with autoscaling. You can combine it with dynamic sources, for example to declare groups that must always exist.
Related terms
- inventory — The list of hosts Ansible may manage, arranged into groups and optionally carrying variables for each host or group.
- dynamic inventory — An inventory produced at run time by a program or plugin, usually by asking a cloud provider, instead of a file maintained by hand.
- INI — A simple text file format of [section] headings followed by key=value lines.
- YAML — A human-friendly text format for configuration, where indentation shows structure.
Taught in
- The Static Inventory File — Ansible Configuration Management at Scale
- Dynamic Inventory — Ansible Configuration Management at Scale
- Static Inventories: Hosts, Groups And Groups Of Groups — RHCE in Ansible (EX294): Automate Red Hat Systems