distgit/pagure: Set git directories as safe

This was fixed previously for pagure.io in the context of
paguremirroring. Turns out, it affects all kinds of git operations, so
document and move accordingly.

Fixes: releng#12181
Fixes: fedora-infrastructure#12010

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2024-06-27 10:54:38 +02:00
parent 0adf0869a6
commit 205e2c9ed5
2 changed files with 18 additions and 12 deletions

View file

@ -182,6 +182,15 @@
- gitolite
- pagure
# On RHEL 8.8 and newer, git operations fail because of dubious ownership. This should fix it.
- name: Configure git directories as safe
git_config:
name: safe.directory
scope: system
value: "*"
tags:
- pagure
- name: Install the apache configuration file
template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }}
owner=root group=root mode=0644