origin is now default or upstream

This commit is contained in:
Emilien Mantel
2015-07-16 10:56:28 +02:00
parent 32bca3d780
commit 5f936c5a52
5 changed files with 10 additions and 10 deletions

View File

@@ -6,8 +6,8 @@
not (
(mysql_origin == 'default' and mysql_vendor == 'mysql') or
(mysql_origin == 'default' and mysql_vendor == 'mariadb' and ansible_distribution_major_version > 7) or
(mysql_origin == 'mariadb' and mysql_vendor == 'mariadb') or
(mysql_origin == 'percona' and mysql_vendor == 'percona')
(mysql_origin == 'upstream' and mysql_vendor == 'mariadb') or
(mysql_origin == 'upstream' and mysql_vendor == 'percona')
)
- name: APT | Update cache
@@ -22,12 +22,12 @@
when: mysql_origin == 'default' and mysql_vendor == 'mariadb' and ansible_distribution_major_version > 7
- name: INCLUDE | Install MariaDB from MariaDB repo
include: 'install_mariadb_mariadb.yml'
when: mysql_origin == 'mariadb' and mysql_vendor == 'mariadb'
include: 'install_upstream_mariadb.yml'
when: mysql_origin == 'upstream' and mysql_vendor == 'mariadb'
- name: INCLUDE | Install Percona Server from Percona repo
include: 'install_percona_percona.yml'
when: mysql_origin == 'percona' and mysql_vendor == 'percona'
include: 'install_upstream_percona.yml'
when: mysql_origin == 'upstream' and mysql_vendor == 'percona'
- name: APT | Install few MySQL related tools
apt: pkg={{ item }} state=latest