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:
parent
6bba694dcc
commit
fb63c16eb2
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue