2015-07-12 16:50:23 +07:00
|
|
|
---
|
|
|
|
|
2017-06-01 20:56:08 +07:00
|
|
|
- name: INCLUDE | Use Percona repository
|
|
|
|
include: 'percona/apt.yml'
|
2018-03-17 23:28:54 +07:00
|
|
|
when: mariadb_use_percona_apt
|
2015-07-12 16:50:23 +07:00
|
|
|
|
|
|
|
- name: INCLUDE | Install MariaDB from Debian repo
|
2015-08-21 16:24:37 +07:00
|
|
|
include: 'mariadb/default.yml'
|
2018-03-17 23:28:54 +07:00
|
|
|
when: mariadb_origin == 'default' and mariadb_vendor == 'mariadb'
|
2015-07-12 16:50:23 +07:00
|
|
|
|
|
|
|
- name: INCLUDE | Install MariaDB from MariaDB repo
|
2015-08-21 16:24:37 +07:00
|
|
|
include: 'mariadb/upstream.yml'
|
2018-03-17 23:28:54 +07:00
|
|
|
when: mariadb_origin == 'upstream'
|
2015-07-12 16:50:23 +07:00
|
|
|
|
2018-03-18 00:47:35 +07:00
|
|
|
- name: APT | Install few MariaDB related tools
|
2018-03-17 23:05:45 +07:00
|
|
|
apt:
|
|
|
|
pkg: "{{ item }}"
|
|
|
|
install_recommends: no
|
2018-03-17 23:28:54 +07:00
|
|
|
with_items: "{{ mariadb_tools }}"
|
2017-06-28 21:15:44 +07:00
|
|
|
|
|
|
|
- name: APT | Install percona-xtrabackup if needed
|
2018-03-17 23:05:45 +07:00
|
|
|
apt:
|
2018-03-17 23:28:54 +07:00
|
|
|
pkg: "{{ mariadb_xtrabackup_package }}"
|
|
|
|
when: mariadb_install_xtrabackup_package
|