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 <marko@status.im>
This commit is contained in:
markoburcul 2024-09-17 08:05:06 +02:00
parent 6bba694dcc
commit fb63c16eb2
No known key found for this signature in database
GPG Key ID: FC4CD2F9A040D54A
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ services:
- '--cluster.probe-timeout={{ alertmanager_probe_timeout }}' - '--cluster.probe-timeout={{ alertmanager_probe_timeout }}'
- '--cluster.probe-interval={{ alertmanager_probe_interval }}' - '--cluster.probe-interval={{ alertmanager_probe_interval }}'
{% for peer in alertmanager_cluster_peers %} {% for peer in alertmanager_cluster_peers %}
{% if peer.Node != hostname %} {% if peer.Node != inventory_hostname %}
- '--cluster.peer={{ peer.ServiceAddress }}:{{ alertmanager_cluster_port }}' # {{ peer.Node }} - '--cluster.peer={{ peer.ServiceAddress }}:{{ alertmanager_cluster_port }}' # {{ peer.Node }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}