node_exporter: Drop os specific var files

This commit is contained in:
Timo Makinen 2025-01-07 00:11:15 +00:00
parent d9c5d73889
commit fff5b5a431
4 changed files with 20 additions and 16 deletions

View file

@ -1,5 +1,10 @@
---
- name: Restart node_exporter
ansible.builtin.service:
name: "{{ node_exporter_service }}"
name: >-
{% if ansible_distribution == "OpenBSD" -%}
{{ "node_exporter" -}}
{% else -%}
{{ "prometheus-node-exporter" -}}
{% endif -%}
state: restarted