Deploying WordPress
In the previous chapter, we built a playbook that installs and configures a basic LAMP stack. In this chapter, we will be building on top of the techniques we used there to create a playbook that installs a LEMP stack, which, as you might recall, replaces Apache with NGINX and then installs WordPress.
Once we finish this chapter, you should be able to do the following:
- Prepare our initial playbook
- Download and install the WordPress CLI
- Install and configure WordPress
- Log in to your WordPress installation
The chapter covers the following topics:
- Preinstallation tasks
- The
stack_install
role - The
stack_config
role - The
wordpress
role - Running the WordPress playbook
Before we start, we should quickly cover what WordPress is; you have likely visited a website powered by WordPress at some point in the last 24 hours.
It is an open-source content management system (CMS) powered by PHP and MySQL and used by around...