From 0d6c24558a6132a69b438c79d86cb32c0690349b Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Jul 01 2024 13:34:48 +0000 Subject: batcave: Set git directories as safe Or else users in sysadmin-main can’t access the repositories. Signed-off-by: Nils Philippsen --- diff --git a/roles/batcave/tasks/main.yml b/roles/batcave/tasks/main.yml index 4ae5a11..90c3e2a 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: