mariadb: Korrigiere bind-Adresse für wwwusers. Setze default.
This commit is contained in:
parent
10da0a723e
commit
43a8ed97f7
1 changed files with 2 additions and 2 deletions
|
@ -2,10 +2,10 @@ check process mariadb with pidfile /var/run/mysqld/mysqld.pid
|
||||||
group database
|
group database
|
||||||
start program = "/usr/sbin/service mysql start"
|
start program = "/usr/sbin/service mysql start"
|
||||||
stop program = "/usr/sbin/service mysql stop"
|
stop program = "/usr/sbin/service mysql stop"
|
||||||
{% if inventory_hostname == "orwell" or inventory_hostname == "wwwusers.sao" %}
|
{% if inventory_hostname == "orwell" %}
|
||||||
if failed host 127.0.0.1
|
if failed host 127.0.0.1
|
||||||
{% else %}
|
{% else %}
|
||||||
if failed host {{ mariadb.bind_address }}
|
if failed host {{ mariadb.bind_address|default( ansible_default_ipv4.address ) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
port 3306 protocol mysql
|
port 3306 protocol mysql
|
||||||
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
|
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
|
||||||
|
|
Loading…
Reference in a new issue