introduced node-exporter-textfile group
This commit is contained in:
parent
a8a82ea08b
commit
22329ccb47
1 changed files with 12 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue