forked from cps-deployments/psi.bec
+1
-11
@@ -182,21 +182,11 @@
|
||||
- name: Clear token from git remote url in BEC plugins
|
||||
become_user: "{{ deployment_user }}"
|
||||
ansible.builtin.command:
|
||||
cmd: git remote set-url origin git@gitea.psi.ch:bec/{{ item.key }}.git
|
||||
cmd: git remote set-url origin https://gitea.psi.ch/bec/{{ item.key }}.git
|
||||
chdir: "{{ timestamped_deployment_path }}/{{ item.key }}"
|
||||
loop: "{{ bec_plugins | dict2items }}"
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Set core.sshCommand in git repositories of plugins
|
||||
become_user: "{{ deployment_user }}"
|
||||
community.general.git_config:
|
||||
name: core.sshCommand
|
||||
value: ssh -i {{ deployment_path_prefix }}/bec_deploy_id
|
||||
scope: local
|
||||
repo: "{{ timestamped_deployment_path }}/{{ item.key }}"
|
||||
loop: "{{ bec_plugins | dict2items }}"
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Create user branches in git repositories of plugins
|
||||
become_user: "{{ deployment_user }}"
|
||||
ansible.builtin.command:
|
||||
|
||||
Reference in New Issue
Block a user