From 41753eab2ee0485995394f5490ee44b5d5532ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 30 Nov 2022 09:58:36 +0100 Subject: [PATCH] add the Prometheus user to postdrop group --- roles/internalsmtp/tasks/main.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/internalsmtp/tasks/main.yaml b/roles/internalsmtp/tasks/main.yaml index f3068d2..656dd2a 100644 --- a/roles/internalsmtp/tasks/main.yaml +++ b/roles/internalsmtp/tasks/main.yaml @@ -24,7 +24,7 @@ name: - prometheus-postfix-exporter -- name: Copy default nginx config +- name: Copy postfix exporter config ansible.builtin.copy: src: prometheus-postfix-exporter dest: /etc/default/prometheus-postfix-exporter @@ -32,6 +32,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