Enable sudo for installing

I was having issues with the oh-my-zsh repository landing in /root for some reason. This fixes that.
I’m not sure, I just used the code I sent you, and it cloned in with my user as the owner. I’m new to Ansible, but it appears that using sudo works as I’d expected. I kind of thought that if you left the sudo out (the more important line being “sudo_user”) it would end up being in my home dir owned by root and useless.?

We could try it :)

On Jul 21, 2014, at 6:55 PM, Alex Lourie <notifications@github.com> wrote:

> In tasks/main.yml:
> 
> > @@ -5,7 +5,8 @@
> >  
> >  - name: install oh-my-zsh
> >    git: repo=https://github.com/robbyrussell/oh-my-zsh dest=~/.oh-my-zsh
> > -  sudo: false
> > +  sudo: true
> I'm afraid that it will clone with root's permissions....which is undesirable.
> Could we solve it with something like
> git: repo=https://github.com/robbyrussell/oh-my-zsh dest=~{{user}}/.oh-my-zsh instead of doing sudo?
> 
> —
> Reply to this email directly or view it on GitHub.
>