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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor 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 ComputingApress Access BooksProfessional and Applied Computing (R0)