mariadb: Korrigiere bind-Adresse für Monit-Überwachung
This commit is contained in:
parent
7cc01cfd5d
commit
415a6055e8
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
- name: "monit | Mysql-Nutzer anlegen"
|
||||
mysql_user:
|
||||
name: "{{ monit_sql_user }}"
|
||||
host: "localhost"
|
||||
host: "{{ mariadb.bind_address|default('localhost') }}"
|
||||
password: "{{ monit_sql_password }}"
|
||||
state: present
|
||||
login_unix_socket: "{{ mysql_socket }}"
|
||||
|
|
|
@ -5,7 +5,7 @@ check process mariadb with pidfile /var/run/mysqld/mysqld.pid
|
|||
{% if inventory_hostname == "orwell" or inventory_hostname == "wwwusers.sao" %}
|
||||
if failed host 127.0.0.1
|
||||
{% else %}
|
||||
if failed host {{ ansible_default_ipv4.address }}
|
||||
if failed host {{ mariadb.bind_address }}
|
||||
{% endif %}
|
||||
port 3306 protocol mysql
|
||||
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
|
||||
|
|
Loading…
Reference in a new issue