Installing the packages

We are going to create four lists of packages; these are in the roles/stack-install/defaults/main.yml file. As per the previous chapter, we first need to uninstall a preinstalled MariaDB package, so our first list includes packages to remove:

packages_remove:  - "mariadb-libs.x86_64"

Next up, we have the packages needed to allow Ansible to interact with services such as SELinux and MariaDB, as well as installing the Postfix package, which, we know from the last time, is removed:

system_packages:  - "postfix"  - "MySQL-python"  - "policycoreutils-python"

Then, we have all of the packages that make up our core software stack:

stack_packages:  - "nginx"  - "mariadb101u"  - "mariadb101u-server"  - "mariadb101u-config" - "mariadb101u-common" ...

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.