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.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.