0Pricing
Ansible Academy · Lesson

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

  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