node_exporter: Drop os specific var files
This commit is contained in:
parent
d9c5d73889
commit
fff5b5a431
4 changed files with 20 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue