mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 14:24:25 +00:00
Fix broken config file CLI flag name
Fixes #11. Uses a version test to ensure backwards compatibility. Signed-off-by: Kevin Bowrin <kevinbowrin@cunet.carleton.ca>
This commit is contained in:
parent
f3449e2df2
commit
3fb29ee4b8
1 changed files with 4 additions and 0 deletions
|
@ -24,7 +24,11 @@ ExecStart={{ _node_exporter_binary_install_dir }}/node_exporter \
|
|||
--no-collector.{{ collector }} \
|
||||
{% endfor %}
|
||||
{% if node_exporter_tls_server_config | length > 0 or node_exporter_http_server_config | length > 0 or node_exporter_basic_auth_users | length > 0 %}
|
||||
{% if node_exporter_version is version('1.5.0', '>=') %}
|
||||
--web.config.file=/etc/node_exporter/config.yaml \
|
||||
{% else %}
|
||||
--web.config=/etc/node_exporter/config.yaml \
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
--web.listen-address={{ node_exporter_web_listen_address }} \
|
||||
--web.telemetry-path={{ node_exporter_web_telemetry_path }}
|
||||
|
|
Loading…
Reference in a new issue