Create new user branches in git repos

This commit is contained in:
2024-07-30 14:01:31 +02:00
parent 63154771fb
commit db66cebedb
+19
View File
@@ -54,6 +54,17 @@
version: "{{ bec_widgets_version }}"
force: true
- name: Create user branches in git repositories
become_user: "{{ bec_user }}"
ansible.builtin.command:
cmd: git switch -c {{ bec_user }}_{{ ansible_date_time['iso8601_basic_short'] }}
chdir: "{{ bec_path }}/{{ item }}"
loop:
- bec
- ophyd_devices
- bec_widgets
when: not ansible_check_mode
- name: Clone BEC plugins
become_user: "{{ bec_user }}"
ansible.builtin.git:
@@ -72,6 +83,14 @@
loop: "{{ bec_plugins | dict2items }}"
when: not ansible_check_mode
- name: Create user branches in git repositories of plugins
become_user: "{{ bec_user }}"
ansible.builtin.command:
cmd: git switch -c {{ bec_user }}_{{ ansible_date_time['iso8601_basic_short'] }}
chdir: "{{ bec_path }}/{{ item.key }}"
loop: "{{ bec_plugins | dict2items }}"
when: not ansible_check_mode
- name: Check if venv exists
ansible.builtin.stat:
path: "{{ bec_venv_path }}"