2015-08-11 15:22:58 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
# Need this hack before:
|
2018-03-18 00:42:08 +07:00
|
|
|
# - https://github.com/ansible/ansible/issues/29214
|
2015-08-11 15:22:58 +07:00
|
|
|
# - https://mariadb.com/kb/en/mariadb/global-transaction-id/#switching-an-existing-old-style-slave-to-use-gtid
|
|
|
|
|
|
|
|
- name: MYSQL_REPLICATION | Stop slave
|
2018-03-18 00:28:56 +07:00
|
|
|
mysql_replication:
|
|
|
|
mode: stopslave
|
2015-08-11 15:22:58 +07:00
|
|
|
|
|
|
|
- name: COMMAND | Migrate to MariaDB GTID
|
2018-03-18 00:47:35 +07:00
|
|
|
command: mariadb -e "CHANGE MASTER TO master_use_gtid=current_pos";
|
2015-08-11 15:22:58 +07:00
|
|
|
|
|
|
|
- name: MYSQL_REPLICATION | Start slave
|
2018-03-18 00:28:56 +07:00
|
|
|
mysql_replication:
|
|
|
|
mode: startslave
|