ansible-mysql/tasks/install/main.yml

25 lines
671 B
YAML
Raw Normal View History

---
- name: INCLUDE | Use Percona repository
include: 'percona/apt.yml'
2018-03-17 23:28:54 +07:00
when: mariadb_use_percona_apt
- name: INCLUDE | Install MariaDB from Debian repo
include: 'mariadb/default.yml'
2018-03-17 23:28:54 +07:00
when: mariadb_origin == 'default' and mariadb_vendor == 'mariadb'
- name: INCLUDE | Install MariaDB from MariaDB repo
include: 'mariadb/upstream.yml'
2018-03-17 23:28:54 +07:00
when: mariadb_origin == 'upstream'
2018-03-18 00:47:35 +07:00
- name: APT | Install few MariaDB related tools
apt:
pkg: "{{ item }}"
install_recommends: no
2018-03-17 23:28:54 +07:00
with_items: "{{ mariadb_tools }}"
- name: APT | Install percona-xtrabackup if needed
apt:
2018-03-17 23:28:54 +07:00
pkg: "{{ mariadb_xtrabackup_package }}"
when: mariadb_install_xtrabackup_package