forked from cps-deployments/psi.bec
Create new user branches in git repos
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user