From ecea6b238bb7028fbc19af6d87b72a640151ec4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 30 Nov 2022 10:12:58 +0100 Subject: [PATCH] add Prometheus user to postdrop group in smtp gateway --- roles/smtpgateway/tasks/main.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/smtpgateway/tasks/main.yaml b/roles/smtpgateway/tasks/main.yaml index e1d2db1..73e2760 100644 --- a/roles/smtpgateway/tasks/main.yaml +++ b/roles/smtpgateway/tasks/main.yaml @@ -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