mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-24 07:04:19 +01:00
Only add replication config if replication is setup.
This commit is contained in:
@@ -9,6 +9,7 @@ bind-address = {{ mysql_bind_address }}
|
||||
datadir = {{ mysql_datadir }}
|
||||
socket = {{ mysql_socket }}
|
||||
|
||||
{% if mysql_replication_master %}
|
||||
# Replication
|
||||
server-id = {{ mysql_server_id }}
|
||||
|
||||
@@ -32,6 +33,7 @@ read_only
|
||||
relay-log = relay-bin
|
||||
relay-log-index = relay-bin.index
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
# Disabling symbolic-links is recommended to prevent assorted security risks
|
||||
symbolic-links = 0
|
||||
|
||||
Reference in New Issue
Block a user