ansible/roles/prometheus_node_exporter/templates/default.j2
2025-07-06 19:40:12 +02:00

13 lines
352 B
Django/Jinja

{{ ansible_managed | comment }}
{# https://github.com/prometheus/exporter-toolkit/issues/91 #}
{%
set listen =
["--web.listen-address"]
| product(prometheus__listen_addrs
| ansible.utils.ipwrap
| product([prometheus__listen_port])
| map("join", ":"))
| map("join", "=")
%}
ARGS="{{ listen | join(' ') }}"