The Playbook
We will use the Playbook we looked at in Chapter 10, Building Out a Cloud Network, as a starting point, as all the roles are relevant to our deployment, and it already has the structure we need for our playbook.
We will also be using the roles to deploy and configure WordPress and the supporting software stack we used in Chapter 9, Moving to the Cloud, with a few tweaks, which are needed as we are targeting AWS and not Microsoft Azure; I will let you know when we get to them.
Unlike previous chapters, we will first look at the site.yml
file to get an idea of the order in which we will run the roles.
There are three stages in the file, starting with the stage that deploys and configures our underlying AWS resources:
- name: "Deploy and configure the AWS Environment" hosts: localhost connection: local gather_facts: true vars: state: "present" vars_files: &...