Abstract
Thus far, you’ve installed all of the dependencies for WordPress and gotten an instance of it configured. The playbook wasn’t the easiest thing to read, though, and it wasn’t very reusable. In this chapter, we’re going to refactor this playbook so that it is split up into logical sections. We’ll have one role that installs PHP, one for nginx, another for MySQL, and, finally, one for WordPress. Not only will this make the playbooks easier to follow, but it will also make them reusable.
Keywords
- Extension Point
- Task File
- Role Section
- File Directory
- Template Directory
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, access via your institution.
Buying options



Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Michael Heap
About this chapter
Cite this chapter
Heap, M. (2016). Ansible Roles. In: Ansible. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1659-0_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1659-0_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1660-6
Online ISBN: 978-1-4842-1659-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books