From f2b9732ea3adf9c9e188a04eb4d5fa00ce9cc515 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 1 Dec 2022 14:44:52 +0200 Subject: [PATCH] Add ACL for puppet --- tasks/configure.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 755029b..63ebd7f 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -176,6 +176,14 @@ option: reports value: prometheus +- name: Add ACL for user puppet to write in node-exporter folder + ansible.posix.acl: + path: /var/lib/prometheus/node-exporter/ + entity: puppet + etype: user + permissions: rwx + state: present + - name: Ensure hiera-eyaml is installed shell: "{{ which_puppetserver.stdout }} gem install hiera-eyaml" args: