June 2018
Beginner
578 pages
13h 39m
English
Now that the role for the final element of our LAMP stack is complete, we can add it to our playbook. It should now look like the following:
---- hosts: boxes gather_facts: true become: yes become_method: sudo vars_files: - group_vars/common.yml roles: - roles/common - roles/apache - roles/mariadb - roles/php
Run it by using the following command:
$ ansible-playbook -i production site.yml
This will deploy PHP on our Vagrant box; this output picks up as the PHP role is called:
TASK [roles/php : install the php packages] ********************************************************changed: [box] => (item=[u'php72u', u'php72u-bcmath', u'php72u-cli', u'php72u-common', u'php72u-dba', u'php72u-fpm', u'php72u-fpm-httpd', u'php72u-gd', ...
Read now
Unlock full access