child group
A group that sits inside another group; its hosts are members of the parent group as well.
In more detail
In INI form, a heading such as [production:children] says the lines below are group names, not host names. In YAML form, a children key holds the nested groups. For variables, a child group's values beat its parent's when both set the same variable.
Example
[production:children]
webservers
dbserversRelated terms
- group — A named set of hosts in an inventory, used both to target them together and to attach variables that are true of all of them.
- variable precedence — The fixed order Ansible uses to decide which value wins when the same variable is set in several places.
- inventory — The list of hosts Ansible may manage, arranged into groups and optionally carrying variables for each host or group.
Taught in
- The Static Inventory File — Ansible Configuration Management at Scale
- Host Groups And Host Variables — Ansible Configuration Management at Scale
- Static Inventories: Hosts, Groups And Groups Of Groups — RHCE in Ansible (EX294): Automate Red Hat Systems
- Inventory Variables: Ranges, group_vars And host_vars — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems