2014-03-01 04:32:17 +01:00
|
|
|
---
|
2015-01-13 16:23:33 +01:00
|
|
|
# Include variables and define needed variables.
|
2014-04-23 17:09:31 +02:00
|
|
|
- name: Include OS-specific variables.
|
|
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
2014-03-01 04:32:17 +01:00
|
|
|
|
2015-01-13 16:23:33 +01:00
|
|
|
- name: Define mysql_packages.
|
|
|
|
set_fact:
|
|
|
|
mysql_packages: "{{ __mysql_packages | list }}"
|
|
|
|
when: mysql_packages is not defined
|
|
|
|
|
|
|
|
# Setup/install tasks.
|
2014-08-26 15:23:48 +02:00
|
|
|
- include: setup-RedHat.yml
|
2014-04-23 17:09:31 +02:00
|
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
|
2014-08-26 15:23:48 +02:00
|
|
|
- include: setup-Debian.yml
|
2014-04-23 17:09:31 +02:00
|
|
|
when: ansible_os_family == 'Debian'
|
2014-03-01 04:32:17 +01:00
|
|
|
|
2015-01-13 16:23:33 +01:00
|
|
|
# Configure MySQL.
|
2014-11-08 22:10:49 +01:00
|
|
|
- include: configure.yml
|
|
|
|
- include: secure-installation.yml
|
2014-11-09 04:43:31 +01:00
|
|
|
- include: databases.yml
|
|
|
|
- include: users.yml
|
|
|
|
- include: replication.yml
|