From 38ca9f6f737858d85efc2588cd5dcdd166019508 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Tue, 4 Jun 2024 10:40:45 +0200 Subject: [PATCH] [distgit/pagure] Set ACL for newly created files in /var/log/pagure Fix for https://pagure.io/fedora-infrastructure/issue/11957 was introduced to pagure role, but it wasn't added to dist-git role as well. Let's fix that. Signed-off-by: Michal Konecny --- roles/distgit/pagure/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/distgit/pagure/tasks/main.yml b/roles/distgit/pagure/tasks/main.yml index 6426c6155c..869a691308 100644 --- a/roles/distgit/pagure/tasks/main.yml +++ b/roles/distgit/pagure/tasks/main.yml @@ -97,6 +97,18 @@ - pagure - hotfix +# Fix for https://pagure.io/fedora-infrastructure/issue/11957 +- name: Set ACL for newly created files in /var/log/pagure + ansible.posix.acl: + path: /var/log/pagure + default: true + etype: group + permissions: "rw" + state: present + tags: + - pagure + - fix_log + - name: create the /srv/tmp folder where to clone repos file: state=directory path=/srv/tmp