Skip to Main Content
Mastering Ansible
book

Mastering Ansible

by Jesse Keating
November 2015
Intermediate to advanced content levelIntermediate to advanced
236 pages
4h 42m
English
Packt Publishing
Content preview from Mastering Ansible

Roles

With a functional understanding of the inclusion of variables, tasks, handlers, and playbooks, we can move on to the more advanced topic of Roles. Roles move beyond the basic structure of a few playbooks and a few broken-out files to reference. Roles provide a framework for fully independent, or interdependent, collections of variables, tasks, files, templates, and modules. Each role is typically limited to a particular theme or desired end result, with all the necessary steps to reach that result either within the role itself or in other roles listed as dependencies. Roles themselves are not playbooks. There is no way to directly execute a role. Roles have no setting for which host the role will apply to. Top-level playbooks are the glue ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automating with Ansible

Automating with Ansible

Sander van Vugt

Publisher Resources

ISBN: 9781784395483Supplemental Content