add Prometheus user to postdrop group in smtp gateway
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2022-11-30 10:12:58 +01:00
parent 41753eab2e
commit ecea6b238b

View File

@ -33,7 +33,7 @@
name:
- prometheus-postfix-exporter
- name: Copy default nginx config
- name: Copy exporter config
ansible.builtin.copy:
src: prometheus-postfix-exporter
dest: /etc/default/prometheus-postfix-exporter
@ -41,6 +41,12 @@
group: root
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
service:
name: prometheus-postfix-exporter