mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Only add replication config if replication is setup.
This commit is contained in:
parent
420894477e
commit
2c5843f164
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue