Skip to content
DevOps Madnessa blog by Ioannis Moustakis

Ansible Roles: Basics, Creating & Using

· via Spacelift

Summary: Roles are how Ansible code stops being copy-paste: tasks, variables, templates and handlers packaged into reusable units with a conventional layout. The directory convention is the feature, since anyone who knows roles can navigate yours. Place defaults versus vars deliberately, and share new work through collections.

Who should read it: playbook authors repeating themselves across projects, and teams formalizing shared automation.

Read the full article on Spacelift →