Creating the Apache and MySQL playbooks
As our goal is to spin up a scalable LAMP stack in this chapter, we must start by defining Ansible playbooks that would run on the build VM. We’ve already created some roles for Apache and MySQL in Chapter 9, Configuration Management with Ansible. We will use the same roles within this setup as well.
Therefore, we will have the following directory structure within the ch10
directory:
├── ansible │ ├── dbserver-playbook.yaml │ ├── roles │ │ ├── apache │ │ ├── common │ │ └── mysql │ └── webserver-playbook.yaml ├── packer │ ├...