© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. MallettRed Hat Certified Engineer (RHCE) Study Guidehttps://doi.org/10.1007/978-1-4842-6861-2_12

12. Simplifying Playbooks Using Roles

Andrew Mallett1  
(1)
Peterborough, UK
 

Having everything related to the Apache management in the single Playbook is convenient to a degree, as we have just one file to work with. It is this single file that also provides us with a large and complex amount of data in the one place. By creating smaller code elements, we not only simplify the code, but we also allow for possible code reuse. We will spend our time in this chapter investigating a new command to us, ansible-galaxy, which we use to manage roles. In doing so we may ...

Get Red Hat Certified Engineer (RHCE) Study Guide: Ansible Automation for the Red Hat Enterprise Linux 8 Exam (EX294) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.