0Pricing
Ansible Academy · Lesson

Nested Groups & the children Keyword

Build group-of-groups hierarchies.

Groups Inside Groups

Sometimes you want a group made of other groups. Ansible calls this a group of groups, built with the children keyword.

The children Keyword in INI

In INI, a header like [prod:children] declares a parent whose members are other group names, not hosts.

[prod:children]
web
db

All lessons in this course

  1. INI vs YAML Inventory Files
  2. Grouping Hosts: web, db & app
  3. Nested Groups & the children Keyword
  4. Host & Group Variables in the Inventory
← Back to Ansible Academy