Bugfix: git: unsafe repository (REPO is owned by someone else) (#354)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#354 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
parent
7a37b0d781
commit
36b214401d
1 changed files with 7 additions and 1 deletions
|
@ -10,6 +10,12 @@
|
|||
path: "{{ dotfiles_repo_path }}"
|
||||
register: repo_exists
|
||||
|
||||
- name: set safe directory
|
||||
become: true
|
||||
ansible.builtin.shell:
|
||||
cmd: git config --global --add safe.directory "{{ dotfiles_repo_path }}"
|
||||
changed_when: false
|
||||
|
||||
- name: stash changes
|
||||
ansible.builtin.shell: git stash
|
||||
args:
|
||||
|
@ -39,7 +45,7 @@
|
|||
state: directory
|
||||
with_items: "{{ dotfiles_dirs }}"
|
||||
|
||||
- name: Link dotfiles into home folder.
|
||||
- name: Link dotfiles into home folder
|
||||
file:
|
||||
src: "{{ item.repo_path }}"
|
||||
dest: "{{ item.local_path }}"
|
||||
|
|
Loading…
Reference in a new issue