Skip to main content
Book cover

Ansible pp 49–62Cite as

Apress

Ansible Roles

  • Chapter
  • First Online:

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics