2015-08-11 16:26:56 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: MYSQL_VARIABLES | Get MySQL vendor
|
2016-02-09 23:41:45 +07:00
|
|
|
mysql_variables: variable=version
|
2015-08-11 16:26:56 +07:00
|
|
|
register: vc
|
|
|
|
|
|
|
|
- name: SET_FACT | Server can use GTID
|
|
|
|
set_fact: mysql_gtid=true
|
|
|
|
when: >
|
2016-02-09 23:41:45 +07:00
|
|
|
( mysql_vendor == 'mariadb' and vc.msg | version_compare('10.0.2', 'ge') ) or
|
|
|
|
( mysql_vendor in ['mysql', 'percona'] and vc.msg | version_compare('5.6.5', 'ge') )
|
2015-08-11 16:26:56 +07:00
|
|
|
|
2015-08-21 15:10:27 +07:00
|
|
|
- name: INCLUDE | Replication Master
|
|
|
|
include: master.yml
|
|
|
|
when: mysql_replication_master
|
|
|
|
|
|
|
|
- name: INCLUDE | Replication slave
|
|
|
|
include: slave.yml
|
|
|
|
when: mysql_replication_slave
|
|
|
|
|