Dag, Michael,
Thank you, that solved the issue.

On Sunday, February 9, 2014 2:22:51 PM UTC-7, Michael DeHaan wrote:
>
> Yes, you need to use the shell module.  However, much of this can be 
> refactored.
>
> curl should probably use the "get_url" module, etc.
>
> There's also the "unarchive" module, so you could do a local play to 
> download the contents to the Ansible control machine and follow that up 
> with unarchive to avoid the download happening on every host.
>
>
>
>
> On Sun, Feb 9, 2014 at 8:55 AM, Naoko Reeves <[email protected]<javascript:>
> > wrote:
>
>> yes this is the task. only "mv" fails...
>>
>> - name: example_client | download archived dist, unpack and cleanup
>>   command: "{{item}}"
>>   with_items:
>>     - curl -H "Authorization:token {{ git_token }}" -L -o 
>> /var/www/example.zip "
>> https://api.github.com/repos/user/example_client/zipball/gh-pages";
>>     - unzip /var/www/example.zip -d /var/www
>>     - *mv* "/var/www/`ls /var/www/ | grep client`" "/var/www/example_new"
>>   tags: 
>>     - deploy
>>
>>
>> On Sunday, February 9, 2014 6:14:07 AM UTC-7, Brian Coca wrote:
>>>
>>> can you show the play/tasks involved?
>>>
>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to