The wordpress role

There a few small changes to the wordpress role; the first change is an update to roles/wordpress/defaults/main.yml:

wordpress:  domain: "http://{{ wordpress_domain }}/"  title: "WordPress installed by Ansible on {{ os_family }}"

As you can see, we have updated the wordpress.domain to include the wordpress_domain variable, and wordpress.title now includes the os_family variable; we are setting both of these in the roles/wordpress/tasks/main.yml file by adding the following task:

- name: set a fact for the wordpress domain  set_fact:    wordpress_domain: "{{ ansible_ssh_host }}"    os_family: "{{ ansible_os_family }}"

The reason we are doing this here is that Vagrant does not correctly set the hostname of our Ubuntu box to the fully ...

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.