1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-11-22 09:41:01 +01:00
ansible-collection-prometheus/roles/prometheus_node/tasks/config.yml

25 lines
695 B
YAML
Raw Permalink Normal View History

2020-11-13 10:36:46 +01:00
---
- 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
2020-11-17 21:28:04 +01:00
owner: prometheus
group: prometheus
2020-11-17 23:06:32 +01:00
notify: restart prometheus-node-exporter
2020-11-13 10:36:46 +01:00
- 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