Chapter 5. Automation with Ansible

In this chapter, we are going to cover the following topics:

  • Installing Ansible
  • Creating a scaffold Playbook
  • Creating a common role
  • Creating a webserver using Ansible and Nginx
  • Creating an application server role using Tomcat and Ansible
  • Installing MySQL using Ansible
  • Installing and managing HAProxy with Ansible
  • Using ServerSpec to test your Playbook

Introduction

Automation is one of the defining techniques of DevOps engineers, and it's not entirely without reason. Both developers and operators have long made use of automation methods to provide services, with operators using automation to define server configuration, and developers automating software build activities. However, until recently, there have been limited ...

Get Learning DevOps: Continuously Deliver Better Software 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.