Adminer

The final task for the playbook is going to be to install a PHP script called Adminer; this provides a PHP-powered interface for interacting with and managing your databases. There are three steps to install Adminer, all of which use the following nested variables that can be found in roles/php/defaults/main.yml:

adminer:  install: true  path: "/usr/share/adminer"  download: "https://github.com/vrana/adminer/releases/download/v4.6.2/adminer-4.6.2-mysql.php"

As you can see, we are using nest variables again, this time to tell our playbook to install the tool, where it should be installed, and also where it can be downloaded from. The first task in roles/php/tasks/main.yml is to create the directory where we are going to be installing ...

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.