From fd72fe5b94ee55430a155ab311bdbcfd098ee9f8 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Mon, 18 Aug 2025 13:56:46 +0200 Subject: [PATCH] Set core.sharedRepository This might not be compatible with admin scripts that change ownership/permissions on different beamlines --- tasks/main.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index f774f11..4250b8e 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -99,6 +99,19 @@ - bec_widgets when: not ansible_check_mode +- name: Set core.sharedRepository in git repositories + become_user: "{{ deployment_user }}" + community.general.git_config: + name: core.sharedRepository + value: group + scope: local + repo: "{{ deployment_path }}/{{ item }}" + loop: + - bec + - ophyd_devices + - bec_widgets + when: not ansible_check_mode + - name: Clone BEC plugins become_user: "{{ deployment_user }}" ansible.builtin.git: @@ -144,6 +157,16 @@ loop: "{{ bec_plugins | dict2items }}" when: not ansible_check_mode +- name: Set core.sharedRepository in git repositories of plugins + become_user: "{{ deployment_user }}" + community.general.git_config: + name: core.sharedRepository + value: group + scope: local + repo: "{{ deployment_path }}/{{ item.key }}" + loop: "{{ bec_plugins | dict2items }}" + when: not ansible_check_mode + - name: Install bec_lib become_user: "{{ deployment_user }}" ansible.builtin.pip: