Fix GTID detection
parent
357f7d1bfb
commit
fc85a9d9d6
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: MYSQL_VARIABLES | Get MySQL vendor
|
- name: MYSQL_VARIABLES | Get MySQL vendor
|
||||||
mysql_variables: variable=version_comment
|
mysql_variables: variable=version
|
||||||
register: vc
|
register: vc
|
||||||
|
|
||||||
- name: SET_FACT | Server can use GTID
|
- name: SET_FACT | Server can use GTID
|
||||||
set_fact: mysql_gtid=true
|
set_fact: mysql_gtid=true
|
||||||
when: >
|
when: >
|
||||||
( mysql_vendor == 'mariadb' and vc.msg[0][1] | version_compare('10.0.2', 'ge') ) or
|
( mysql_vendor == 'mariadb' and vc.msg | version_compare('10.0.2', 'ge') ) or
|
||||||
( vc.msg[0][1] | version_compare('5.6.5', 'ge') )
|
( mysql_vendor in ['mysql', 'percona'] and vc.msg | version_compare('5.6.5', 'ge') )
|
||||||
|
|
||||||
- name: INCLUDE | Replication Master
|
- name: INCLUDE | Replication Master
|
||||||
include: master.yml
|
include: master.yml
|
||||||
|
|
Loading…
Reference in New Issue