From a9202bab8be85d240e6f9643cdbd5294e44d8540 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Thu, 2 Feb 2023 11:56:52 +0100
Subject: [PATCH] fix: checkout significantproperties repo from Git, even if
 there's an owner mismatch (which, in turn, is required by SubApp)

---
 tasks/install_subapp.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tasks/install_subapp.yml b/tasks/install_subapp.yml
index bad08ec..2e0d340 100644
--- a/tasks/install_subapp.yml
+++ b/tasks/install_subapp.yml
@@ -115,6 +115,12 @@
   ansible.builtin.apt:
     name: "git"
     state: latest
+# "msg": "Failed to set a new url https://git.slub-dresden.de/digital-preservation/significantproperties.git for origin:  fatal: detected dubious ownership in repository at '/usr/local/share/significantproperties'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /usr/local/share/significantproperties\n"
+- name: git konfigurieren (muss gesetzt sein, sonst wirft der nächste Task den Fehler 'detected dubious ownership in repository')
+  community.general.git_config:
+    name: "safe.directory"
+    scope: "global"
+    value: "/usr/local/share/significantproperties"
 - name: Config für Signifikante Eigenschaften einspielen
   ansible.builtin.git:
     repo: "https://git.slub-dresden.de/digital-preservation/significantproperties.git"
-- 
GitLab