Running the WordPress playbook
To run the playbook and install WordPress, we need to finish walking through the files; site.yml
should look as follows:
--- - name: "Install and configure WordPress and supporting software" hosts: "ansible_hosts" gather_facts: true become: true become_method: "ansible.builtin.sudo" vars_files: - "group_vars/common.yml" roles: - "stack_install" - "stack_config" - "wordpress"
With that out of the way, we can run the playbook.
Note
The Chapter05
folder in the GitHub repository accompanying this title contains the example hosts
file and keys for launching a local virtual machine using Multipass. If you are following along, please refer to the instructions in Chapter 1, Installing and Running Ansible; these detail...