mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-22 09:41:01 +01:00
24 lines
695 B
YAML
24 lines
695 B
YAML
---
|
|
|
|
- name: create /etc/prometheus/node-exporter/tls
|
|
file:
|
|
path: /etc/prometheus/node-exporter/tls
|
|
state: directory
|
|
owner: prometheus
|
|
group: prometheus
|
|
|
|
- name: render /etc/prometheus/node-exporter/tls/config.yml
|
|
template:
|
|
src: prometheus-node-exporter-webconfig.yml.j2
|
|
dest: /etc/prometheus/node-exporter/tls/config.yml
|
|
owner: prometheus
|
|
group: prometheus
|
|
notify: restart prometheus-node-exporter
|
|
|
|
- name: render /etc/default/prometheus-node-exporter
|
|
template:
|
|
src: prometheus-node-exporter.default.j2
|
|
dest: /etc/default/prometheus-node-exporter
|
|
vars:
|
|
args: "{{ prometheus_node_exporter_args }}"
|
|
notify: restart prometheus-node-exporter
|