--- - name: MYSQL_VARIABLES | Get MySQL vendor mysql_variables: variable=version register: vc - name: SET_FACT | Server can use GTID set_fact: mysql_gtid=true when: > ( 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') ) - name: INCLUDE_TASKS | Replication Master include_tasks: master.yml when: mysql_replication_master - name: INCLUDE_TASKS | Replication slave include_tasks: slave.yml when: mysql_replication_slave