21 lines
511 B
YAML
21 lines
511 B
YAML
|
---
|
||
|
|
||
|
- name: MYSQL_VARIABLES | Get MySQL vendor
|
||
|
mysql_variables: variable=version_comment
|
||
|
register: vc
|
||
|
|
||
|
- name: SET_FACT | Server can use GTID
|
||
|
set_fact: mysql_gtid=true
|
||
|
when: >
|
||
|
( mysql_vendor == 'mariadb' and vc.msg[0][1] | version_compare('10.0.2', 'ge') ) or
|
||
|
( vc.msg[0][1] | version_compare('5.6.5', 'ge') )
|
||
|
|
||
|
- name: INCLUDE | Replication Master
|
||
|
include: master.yml
|
||
|
when: mysql_replication_master
|
||
|
|
||
|
- name: INCLUDE | Replication slave
|
||
|
include: slave.yml
|
||
|
when: mysql_replication_slave
|
||
|
|