PHP

The final element of the stack we are putting together is PHP. As with the other three elements, we need to create a role using the ansible-galaxy init command:

$ ansible-galaxy init roles/php

As with the other parts of the stack, we are going to be using packages from the IUS repository; this will allow us to install the latest version of PHP, version 7.2.