Skip to content

Commit

Permalink
Fixed clone directory when user home not set by become_user (#83)
Browse files Browse the repository at this point in the history
Fix issue where oh-my-zsh is cloned into root home instead of the users home
  • Loading branch information
segfault16 authored and freemanjp committed Oct 28, 2018
1 parent 75948e4 commit 6aeacd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
become: yes
become_user: '{{ item.username }}'
# core.autocrlf=input prevents https://github.com/robbyrussell/oh-my-zsh/issues/4402
command: 'git clone -c core.autocrlf=input --depth=1 https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh'
command: 'git clone -c core.autocrlf=input --depth=1 https://github.com/robbyrussell/oh-my-zsh.git .oh-my-zsh'
args:
chdir: '~{{ item.username }}'
creates: '~{{ item.username }}/.oh-my-zsh'
with_items: '{{ users }}'

Expand Down

0 comments on commit 6aeacd0

Please sign in to comment.