introduced node-exporter-textfile group

This commit is contained in:
Julian Rother 2021-05-01 16:33:24 +02:00
parent a8a82ea08b
commit 22329ccb47
No known key found for this signature in database
GPG key ID: 2F811E2338EE029B

View file

@ -107,3 +107,15 @@
src: node-alerts.j2
dest: /etc/prometheus/conf.d/rule_files/agent_{{ inventory_hostname }}.conf
mode: 0644
- name: create node-exporter-textfile group
ansible.builtin.group:
name: node-exporter-textfile
state: present
- name: make node-exporter textfile dir accessible to node-exporter-textfile group
ansible.builtin.file:
path: /var/lib/prometheus/node-exporter
state: directory
owner: root
group: node-exporter-textfile
mode: '0775'