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