Fix GTID detection

pull/14/head
Emilien Mantel 2016-02-09 17:41:45 +01:00
parent 357f7d1bfb
commit fc85a9d9d6
1 changed files with 3 additions and 3 deletions

View File

@ -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