Thank you Tomasz, that fixed it!

On Sunday, April 20, 2014 12:13:10 PM UTC-5, Daniel Charbonneau wrote:
>
> The second task below fails with npm not being able to find a package.json 
> within /root/ That is, it doesn't know that it should cd into /root/olio, 
> and so of course it isn't going to find a package.json file.
>
> The git module for some reason creates this directory structure:
> /root/\[/root/olio\]/
>
> ...which seems to imply the variable isn't interpreted correctly.
>
> I'm also using the root user to login right now because I haven't yet 
> grasped creating users.
>
>
> ---
> # roles/olio/vars/main.yml
>
> olio_directory:
>   - /root/olio
>
>
> ---
> # roles/olio/tasks/main.yml
>
> - name: clone olio
>   git: repo=https://github.com/novodinia/olio.git dest={{ olio_directory 
> }}
>
> - name: use npm to install dependencies
>   npm: path={{ olio_directory }}
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/32398963-aed2-47f6-8beb-2b417c4b0cb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to