[Pagure] Set git directories as safe system-wide

This will solve https://pagure.io/fedora-infrastructure/issue/11330

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-09-06 10:12:02 +02:00
parent b7244eb818
commit 3c9cd1ad34

View file

@ -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