constructed inventory plugin

A built-in inventory plugin that creates groups and variables from attributes of hosts already in the inventory.

In more detail

It names no hosts of its own; it is a transformation layered over other sources, so it must be passed after them. keyed_groups makes a group per distinct attribute value, and strict: false means a host missing the attribute is skipped rather than failing the run.

Example

ansible-inventory -i inventory -i constructed.yml --graph

Related terms

Taught in

References