Preinstallation tasks
As mentioned in Chapter 4, Deploying a LAMP Stack, a LEMP stack is composed of the following elements:
- Linux: In our case, this will be the Ubuntu Multipass virtual machine
- NGINX: If you remember, it is pronounced as engine-x, which means there is an E in LEMP and not an N (which would also make it impossible to pronounce as an abbreviation)
- MariaDB: As we have already seen, this will be the database component
- PHP: We will be using PHP 8 again for this
Before we install WordPress, we need to install and configure these components. Also, as this playbook will eventually be executed against publicly available cloud servers, we must consider some best practices around our NGINX configuration.
However, before we start looking at the playbook, let’s start things off by getting the initial structure of the playbook set up:
$ mkdir Chapter05 Chapter05/group_vars Chapter05/roles $ touch Chapter05/group_vars/common.yml Chapter05...