The WordPress playbook

As you have already guessed, this is going to be extremely simple, as we already have written a playbook that deploys WordPress on a CentOS 7 host. In fact, all we need to do is copy the group_vars, roles folders, plus their contents, and also the site.yml file from the Chapter05/lemp folder in the repository and we are done.

This is one of the great advantages of using a tool such as Ansible: Write once and use often; the only change we will be making is the site.yml file when we add in the plays that deploy the software.

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.