0Pricing
Ansible Academy · Lesson

INI vs YAML Inventory Files

Write hosts in both inventory formats.

What an Inventory Is

An inventory is just a file listing the hosts Ansible can manage. No hosts listed means nothing to automate.

Two Supported Formats

Ansible reads inventories in two flavors: the classic INI style and a structured YAML style. You pick one per file.

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