From 43a8ed97f74cc2aaf5f5af8c83284fef5a68533e Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 23 Jul 2022 13:02:08 +0200 Subject: [PATCH] =?UTF-8?q?mariadb:=20Korrigiere=20bind-Adresse=20f=C3=BCr?= =?UTF-8?q?=20wwwusers.=20Setze=20default.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/monit.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/monit.j2 b/templates/monit.j2 index be2d530..b4e6e84 100644 --- a/templates/monit.j2 +++ b/templates/monit.j2 @@ -2,10 +2,10 @@ check process mariadb with pidfile /var/run/mysqld/mysqld.pid group database start program = "/usr/sbin/service mysql start" 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 {% else %} - if failed host {{ mariadb.bind_address }} + if failed host {{ mariadb.bind_address|default( ansible_default_ipv4.address ) }} {% endif %} port 3306 protocol mysql username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"