From 3c9cd1ad34cb01076c5b1f2a4727b81b258121d6 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Wed, 6 Sep 2023 10:12:02 +0200 Subject: [PATCH] [Pagure] Set git directories as safe system-wide This will solve https://pagure.io/fedora-infrastructure/issue/11330 Signed-off-by: Michal Konecny --- roles/pagure/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/pagure/tasks/main.yml b/roles/pagure/tasks/main.yml index 8d4b8c3d52..9d05fc83de 100644 --- a/roles/pagure/tasks/main.yml +++ b/roles/pagure/tasks/main.yml @@ -177,6 +177,19 @@ - pagure - mirror +# On RHEL 8.8 and newer the paguremirroring fails +# because of dubious ownership. This is allowing +# paguremirroring to work again +- name: Configure git directories as safe + git_config: + name: safe.directory + scope: system + value: * + tags: + - pagure + - mirror + when: env == 'pagure-staging' + # Set-up postfix and the milter for postfix - name: Add the /etc/aliases file