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

Move PNE TLS config to a different directory

This commit is contained in:
s3lph 2020-11-17 23:17:49 +01:00
parent c7d0bece62
commit 5086fe389f
2 changed files with 10 additions and 3 deletions

View file

@ -1,9 +1,16 @@
--- ---
- name: render /etc/prometheus/tls/config.yml - 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: template:
src: prometheus-node-exporter-webconfig.yml.j2 src: prometheus-node-exporter-webconfig.yml.j2
dest: /etc/prometheus/tls/config.yml dest: /etc/prometheus/node-exporter/tls/config.yml
owner: prometheus owner: prometheus
group: prometheus group: prometheus
notify: restart prometheus-node-exporter notify: restart prometheus-node-exporter

View file

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