ansible-mysql/tasks/install/main.yml

25 lines
655 B
YAML
Raw Normal View History

---
- name: INCLUDE | Use Percona repository
include: 'percona/apt.yml'
when: mysql_use_percona_apt
- name: INCLUDE | Install MariaDB from Debian repo
include: 'mariadb/default.yml'
2016-09-23 14:38:19 +07:00
when: mysql_origin == 'default' and mysql_vendor == 'mariadb'
- name: INCLUDE | Install MariaDB from MariaDB repo
include: 'mariadb/upstream.yml'
when: mysql_origin == 'upstream'
- name: APT | Install few MySQL related tools
apt:
pkg: "{{ item }}"
install_recommends: no
with_items: "{{ mysql_tools }}"
- name: APT | Install percona-xtrabackup if needed
apt:
pkg: "{{ mysql_xtrabackup_package }}"
when: mysql_install_xtrabackup_package