Ansible · Playbook Craft · Intermediate · 30 min read
Ansible Roles: Directory Structure, Defaults, Dependencies and Reusable Automation
Turn playbooks into reusable building blocks. Learn the role directory layout, defaults versus vars, handlers and templates in roles, include_role versus roles, dependencies and argument specs, naming and variable hygiene, designing role interfaces, sharing roles through collections, and a worked nginx role.
Create an account to start
Create a free account to see what this lesson covers
- Every free lesson in every section, in full
- Track your progress and pick up where you left off
- Free practice questions and an incident simulation
- Takes under a minute: name, email and a password
No card needed. Full access to Ansible is a paid upgrade you can choose later.