From fb63c16eb260f1f636df815903cfc6e967250c79 Mon Sep 17 00:00:00 2001 From: markoburcul Date: Tue, 17 Sep 2024 08:05:06 +0200 Subject: [PATCH] ansible: Change hostname to inventory_hostname Due to the change caused by updated terraform script, we need to change usage of variable `hostname` to `inventory_hostname`. Signed-off-by: markoburcul --- templates/docker-compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index f660dd9..53e02cc 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -27,7 +27,7 @@ services: - '--cluster.probe-timeout={{ alertmanager_probe_timeout }}' - '--cluster.probe-interval={{ alertmanager_probe_interval }}' {% for peer in alertmanager_cluster_peers %} -{% if peer.Node != hostname %} +{% if peer.Node != inventory_hostname %} - '--cluster.peer={{ peer.ServiceAddress }}:{{ alertmanager_cluster_port }}' # {{ peer.Node }} {% endif %} {% endfor %}