0Pricing
Ansible Academy · Lesson

The Recommended Directory Layout

Where playbooks, inventory and vars live.

Why Layout Matters

As projects grow, scattered files become chaos. A standard directory layout tells your team exactly where everything lives. 📁

The site.yml Entry Point

By convention, site.yml is the top-level playbook that ties your whole infrastructure together and includes the rest.

# site.yml
- import_playbook: webservers.yml
- import_playbook: dbservers.yml

All lessons in this course

  1. The Recommended Directory Layout
  2. group_vars & host_vars Directories
  3. Splitting Playbooks with import & include
  4. Naming, Comments & Style That Scale
← Back to Ansible Academy