Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

Book cover

Ansible pp 49–62Cite as

Apress

Ansible Roles

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-1-4842-1659-0_4
  • Chapter length: 14 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-1659-0
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   49.99
Price excludes VAT (USA)
Figure 4-1.
Figure 4-2.
Figure 4-3.

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