Running the playbook
There are no changes to our site.yml
file, meaning that we need to run the following command to run the playbook:
$ ansible-playbook -i hosts site.yml
There is way too much output to cover here, but I will include some of the highlights from the playbook execution, starting with the gathering of the facts:
TASK [Gathering Facts] ************************************ ok: [Debian] ok: [RedHat]
Now that Ansible knows about our two hosts, it makes a start on running the tasks; here are the updated ones from the Stack Install role:
TASK [roles/stack_install : update apt-cache and upgrade packages] ************* skipping: [RedHat] changed: [Debian]
As you can see, this was the apt
one, and the dnf
one looks like this:
TASK [roles/stack_install : update all of the installed packages] ************** skipping: [Debian] changed: [RedHat]
Now, moving onto the Stack Config role, this is where tasks are being run on both distributions:
TASK [roles/stack_config...