Why Roles: From Monolith to Modules
The case for structured reuse.
The Monolithic Playbook Problem
As a playbook grows, all your tasks, files, and variables pile into one giant file. It becomes hard to read, share, and reuse.
Roles Are Reusable Bundles
A role packages related tasks, handlers, files, templates, and variables into one tidy unit you can drop into any playbook.
All lessons in this course
- Why Roles: From Monolith to Modules
- The Role Directory Anatomy
- Scaffold a Role with ansible-galaxy init
- Apply Roles & Pass Role Variables