From d15819fb04c247b54b3348cee41a39317c0eb96f Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Mon, 13 Jan 2020 17:22:16 +0100 Subject: [PATCH] Replication should set a binlog format This could possible be better served in the base config file, but for now I'll keep it here. --- mysql/defaults/main.yml | 3 ++- mysql/templates/replication.cnf.j2 | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mysql/defaults/main.yml b/mysql/defaults/main.yml index f364de18..501b2cb2 100644 --- a/mysql/defaults/main.yml +++ b/mysql/defaults/main.yml @@ -45,6 +45,7 @@ mysql_restart_if_needed: True # replication variables: mysql_replication: false mysql_log_bin: null +mysql_binlog_format: mixed mysql_server_id: null mysql_bind_address: null -mysql_repl_password: '' \ No newline at end of file +mysql_repl_password: '' diff --git a/mysql/templates/replication.cnf.j2 b/mysql/templates/replication.cnf.j2 index f6da45d9..030f2470 100644 --- a/mysql/templates/replication.cnf.j2 +++ b/mysql/templates/replication.cnf.j2 @@ -5,3 +5,4 @@ log_bin = {{ mysql_log_bin }} {% endif %} server_id = {{ mysql_server_id }} +binlog_format = {{ mysql_binlog_format }}