What are the default groups `all` and `ungrouped`?

BeginnerConceptInventory
Answer

all contains every host in the inventory. ungrouped contains every host that is not a member of any other group. Every host is always in all and in at least one more group, so a host with no groups ends up in ungrouped.

Variables in group_vars/all.yml apply to every host and are the lowest-priority inventory group level.

All Ansible questions Roadmap: Ansible

More on Inventory