LFCE 150 🐧 Ansible — Roles and Reuse
A role is the unit of reuse in Ansible. It packages tasks, handlers, variables, templates, files, and metadata into a directory tree with a defined structure, and a playbook consumes the role by name instead of repeating the tasks inline. The role is the answer to the problem that a playbook, once it grows past…