1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-12-23 00:37:33 +01:00

fix: recent versions of prometheus node exporter renamed --web.config to --web.config.file

This commit is contained in:
s3lph 2023-06-20 22:54:04 +02:00
parent ddc99c03cb
commit ba00a83424
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ namespace: s3lph
name: prometheus
# The version of the collection. Must be compatible with semantic versioning
version: 0.9.2
version: 0.9.3
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

View file

@ -41,7 +41,7 @@
line: >-
node_exporter_flags=--collector.textfile.directory={{ prometheus_node_textfile_dir }}
{% for k, v in prometheus_node_exporter_args.items() %}--{{ k }}="{{ v }}" {% endfor %}
--web.config=/etc/prometheus/node-exporter/tls/config.yml
--web.config.file=/etc/prometheus/node-exporter/tls/config.yml
regexp: ^node_exporter_flags=.*$
when: "ansible_distribution == 'OpenBSD'"
notify:

View file

@ -1,3 +1,3 @@
{{ ansible_managed | comment }}
ARGS="{% for k, v in args.items() %}--{{ k }}=\"{{ v }}\" {% endfor %} --web.config=/etc/prometheus/node-exporter/tls/config.yml"
ARGS="{% for k, v in args.items() %}--{{ k }}=\"{{ v }}\" {% endfor %} --web.config.file=/etc/prometheus/node-exporter/tls/config.yml"