diff --git a/roles/mgrote.docker-compose-deploy/tasks/dockercompose-up.yml b/roles/mgrote.docker-compose-deploy/tasks/dockercompose-up.yml index b3e27379..68989430 100644 --- a/roles/mgrote.docker-compose-deploy/tasks/dockercompose-up.yml +++ b/roles/mgrote.docker-compose-deploy/tasks/dockercompose-up.yml @@ -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: diff --git a/roles/mgrote.vim/tasks/main.yml b/roles/mgrote.vim/tasks/main.yml index b1045053..a3571812 100644 --- a/roles/mgrote.vim/tasks/main.yml +++ b/roles/mgrote.vim/tasks/main.yml @@ -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 }}"