intermediate~3h
Roles and Reusability
How to break large playbooks into reusable roles, the standard role directory layout Ansible expects, and when to pull a role from Ansible Galaxy versus writing your own.
Learning objectives
- Explain why flat playbooks stop scaling as infrastructure grows
- Lay out a role using Ansible's standard directory structure
- Compose a site playbook from multiple roles
- Decide when to use a Galaxy role versus writing a custom one
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
Roles and Reusability