Bugfix: vim+docker: unsafe repository (REPO is owned by someone else) (#355)
36b214401d
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#355
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
parent
36b214401d
commit
d2816e2a5f
2 changed files with 13 additions and 0 deletions
|
@ -18,6 +18,12 @@
|
|||
path: "{{ project_dir }}"
|
||||
register: repo_exists
|
||||
|
||||
- name: set safe directory
|
||||
become: true
|
||||
ansible.builtin.shell:
|
||||
cmd: git config --global --add safe.directory "{{ project_dir }}"
|
||||
changed_when: false
|
||||
|
||||
- name: stash changes - "{{ item.name }}"
|
||||
ansible.builtin.shell: git stash
|
||||
args:
|
||||
|
|
|
@ -13,6 +13,13 @@
|
|||
path: "{{ vim_vundle_path }}"
|
||||
register: folder_exists
|
||||
|
||||
|
||||
- name: set safe directory
|
||||
become: true
|
||||
ansible.builtin.shell:
|
||||
cmd: git config --global --add safe.directory "{{ vim_vundle_path }}"
|
||||
changed_when: false
|
||||
|
||||
- name: Ensure repository is cloned locally.
|
||||
git:
|
||||
repo: "{{ vim_vundle_repo_url }}"
|
||||
|
|
Loading…
Reference in a new issue