Grouping Hosts: web, db & app
Organize servers into logical groups.
Why Group Hosts
A group lets you act on many servers at once. Instead of naming each host, you target the role they share.
Name Groups by Role
Good group names describe a server's job: web, db, app. The name becomes how you target that tier in commands.
[web]
[db]
[app]All lessons in this course
- INI vs YAML Inventory Files
- Grouping Hosts: web, db & app
- Nested Groups & the children Keyword
- Host & Group Variables in the Inventory