Table of Contents

Ansible - Child Group (Children|Group of Group)

About

A group of a group is called a child group.

The relation is defined through the use of the children key word.

Properties

Management

Definition

Create a group of a group relation using :

Example: The group parent1 has two children group1 and group2

[childgroup2]
host1
host2

[childgroup1]
host2
host3

[parent1:children]
childgroup1
childgroup2
all:
    children:
        parent1:
            children:
                childgroup1:
                    host1:
                    host2:
                childgroup2:
                    host3:
                    host4:

Documentation / Reference