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: