|
|
|
@ -1,13 +1,21 @@ |
|
|
|
|
--- |
|
|
|
|
# Include variables and define needed variables. |
|
|
|
|
- name: Include OS-specific variables. |
|
|
|
|
include_vars: "{{ ansible_os_family }}.yml" |
|
|
|
|
|
|
|
|
|
- name: Define mysql_packages. |
|
|
|
|
set_fact: |
|
|
|
|
mysql_packages: "{{ __mysql_packages | list }}" |
|
|
|
|
when: mysql_packages is not defined |
|
|
|
|
|
|
|
|
|
# Setup/install tasks. |
|
|
|
|
- include: setup-RedHat.yml |
|
|
|
|
when: ansible_os_family == 'RedHat' |
|
|
|
|
|
|
|
|
|
- include: setup-Debian.yml |
|
|
|
|
when: ansible_os_family == 'Debian' |
|
|
|
|
|
|
|
|
|
# Configure MySQL. |
|
|
|
|
- include: configure.yml |
|
|
|
|
- include: secure-installation.yml |
|
|
|
|
- include: databases.yml |
|
|
|
|