The stack-install command

We are going to start by creating a role called stack-install using ansible-galaxy init:

$ ansible-galaxy init roles/stack-install

This will install our initial software stack. Once installed, we hand over to a second role, which will then configure the software stack before a third role starts the WordPress installation.

So what packages do we need? WordPress has the following requirements:

  • PHP 7.2 or higher
  • MariaDB 10.0 or greater, or MySQL 5.6 or greater
  • NGINX or Apache with the mod_rewrite module
  • HTTPS support

We know from the previous chapter that the IUS repository can provide PHP 7.2 and MariaDB 10.1, so we will use that as the source for those packages, but what about NGINX? There are NGINX packages in the EPEL repository. However, we are going to be using the main NGINX repository so we can get the latest and greatest version.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.53.209