From c0f18e50c3c007689509a8b7c8894229f29a0c0c Mon Sep 17 00:00:00 2001 From: Adrian Edwards Date: Tue, 4 Jun 2024 12:57:54 -0400 Subject: [PATCH 1/3] ignore git safety warnings as we are not under attack --- ansible/roles/common/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index 9330ded..abe9894 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -8,6 +8,7 @@ - git - python3 - fedora-messaging + - git state: present - name: Determine Python version @@ -57,3 +58,6 @@ owner: root group: root mode: 0644 + +- name: set git to ignore safety warnings added in git 2.36 https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks + command: git config --global --add safe.directory /vagrant/freeipa-fas From 2b2751a0c07beddb002eb5955456b9d887c6ba57 Mon Sep 17 00:00:00 2001 From: Adrian Edwards Date: Tue, 4 Jun 2024 13:12:12 -0400 Subject: [PATCH 2/3] just disable them all --- ansible/roles/common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index abe9894..e173dbf 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -60,4 +60,4 @@ mode: 0644 - name: set git to ignore safety warnings added in git 2.36 https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks - command: git config --global --add safe.directory /vagrant/freeipa-fas + command: git config --global --add safe.directory '*' From 669b61ff6ae180cf510f7c89b76f7de8b836da06 Mon Sep 17 00:00:00 2001 From: Adrian Edwards Date: Tue, 4 Jun 2024 15:23:59 -0400 Subject: [PATCH 3/3] apply the config as the right user lol --- ansible/roles/common/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index e173dbf..7048c94 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -61,3 +61,4 @@ - name: set git to ignore safety warnings added in git 2.36 https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks command: git config --global --add safe.directory '*' + become_user: vagrant