From 6de0ebbb717a6797b41fe088a6fefd787988c251 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Tue, 7 Jul 2026 17:49:57 +0200 Subject: [PATCH] fix: cicd ansible --- ansible/plays/service/service-deploy-and-restart.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ansible/plays/service/service-deploy-and-restart.yml b/ansible/plays/service/service-deploy-and-restart.yml index 491dcab..514adda 100644 --- a/ansible/plays/service/service-deploy-and-restart.yml +++ b/ansible/plays/service/service-deploy-and-restart.yml @@ -8,6 +8,11 @@ workspace_dir: "/tmp/hla_framework_bd" tasks: + # Tell Git to bypass the strict ownership check for this specific directory + - name: Whitelist temporary git directory + ansible.builtin.command: + cmd: "git config --global --add safe.directory {{ workspace_dir }}" + # TODO: can remove when running on runner - name: Clone this repository ansible.builtin.git: @@ -16,7 +21,6 @@ accept_hostkey: true version: "{{ branch_name }}" force: true - become: yes - name: Initialize isolated service directory name ansible.builtin.set_fact: