June 2018
Beginner
578 pages
13h 39m
English
Now that the role for installing and configuring Apache is complete, we can add it to our playbook:
---- hosts: boxes gather_facts: true become: yes become_method: sudo vars_files: - group_vars/common.yml roles: - roles/common - roles/apache
Following on from the playbook in the previous section, we can simply rerun the following command:
$ ansible-playbook -i production site.yml
This will work through the common role before executing the apache role. I have truncated the output for the common role in the playbook run here:
PLAY [boxes] ***************************************************************************************TASK [Gathering Facts] ***************************************************************************** ...
Read now
Unlock full access