add the Prometheus user to postdrop group
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
0ec240eae5
commit
41753eab2e
@ -24,7 +24,7 @@
|
|||||||
name:
|
name:
|
||||||
- prometheus-postfix-exporter
|
- prometheus-postfix-exporter
|
||||||
|
|
||||||
- name: Copy default nginx config
|
- name: Copy postfix exporter config
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: prometheus-postfix-exporter
|
src: prometheus-postfix-exporter
|
||||||
dest: /etc/default/prometheus-postfix-exporter
|
dest: /etc/default/prometheus-postfix-exporter
|
||||||
@ -32,6 +32,12 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Add the prometheus user to postdrop group
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: prometheus
|
||||||
|
groups: postdrop
|
||||||
|
append: yes
|
||||||
|
|
||||||
- name: Enable and restart exporter daemon
|
- name: Enable and restart exporter daemon
|
||||||
service:
|
service:
|
||||||
name: prometheus-postfix-exporter
|
name: prometheus-postfix-exporter
|
||||||
|
Loading…
Reference in New Issue
Block a user