Chapter 8. Extending automation to test, staging, and production environments

This chapter covers

  • Using Ansible to provision multiple environments
  • Moving your infrastructure to the cloud

In the previous chapter we wrote an Ansible playbook to automatically provision the local development environment for the UAD application. In this chapter we’ll build on that work, refactoring our Ansible scripts so that we can reuse them to provision all our environments, all the way from the developer’s machine to the production servers.

Before we start, we should quickly go over what environments a piece of software needs to run on, and why we’d want to automate the provisioning process for those environments.

Every software application will have slightly ...

Get Re-Engineering Legacy 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.