all and ungrouped groups

The two groups every inventory has automatically: all contains every host, and ungrouped contains hosts that belong to no other group.

In more detail

You never need to declare them, though a YAML inventory usually starts from all explicitly. Variables in group_vars/all apply to every host and lose to any more specific group. When dynamic groups give every host a home, ungrouped becomes empty.

Related terms

Taught in

References

Certification courses