From 0d6c24558a6132a69b438c79d86cb32c0690349b Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 27 Jun 2024 12:14:27 +0200 Subject: [PATCH] batcave: Set git directories as safe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Or else users in sysadmin-main can’t access the repositories. Signed-off-by: Nils Philippsen --- roles/batcave/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/batcave/tasks/main.yml b/roles/batcave/tasks/main.yml index 4ae5a11a4e..90c3e2aeae 100644 --- a/roles/batcave/tasks/main.yml +++ b/roles/batcave/tasks/main.yml @@ -541,6 +541,16 @@ - httpd - httpd/website +# 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: + - config + - batcave + - name: Add SAR script for koji copy: src=koji_sar.py dest=/usr/local/bin/koji_sar.py owner=root mode=0700 tags: