Yeah, this is not something Ansible's going to do, because it's an
intrinsitic language feature:

- hosts: webservers
  tasks:
     - ...

Will ALWAYS run on those servers, and that's true of all the base modules.

Unless you have a step in the middle that says local_action, etc, it's
going to run where you tell it :)






On Thu, Aug 28, 2014 at 9:43 PM, Toby Wintermute <[email protected]> wrote:

> I just spent half an hour trying to work out why this was failing too.
> It'd be good if the uri module made it clearer about where the fetch was
> run from, I think.
>
>
> On Monday, 11 November 2013 00:40:48 UTC+11, Lars Vonk wrote:
>>
>> Never mind... the task is run on the server and not on my laptop... doh!
>>
>> Lars
>>
>> On Saturday, November 9, 2013 4:32:10 PM UTC+1, Lars Vonk wrote:
>>>
>>> Hi,
>>>
>>> I am trying to download some resource from the web using the uri module
>>> as follows
>>>
>>> - name: Download the resource from the web
>>>   uri: url={{app_url}} dest=/opt/app creates=/opt/app/{{app_version}}
>>>
>>> This keeps failing with the following error:
>>>
>>> *failed: [192.168.111.222] => {"failed": true, "item": ""}*
>>> *msg: httplib2 is not installed*
>>>
>>> httplib2 is installed however:
>>>
>>> lars (master)$ pip install httplib2
>>> Requirement already satisfied (use --upgrade to upgrade): httplib2 in
>>> /usr/local/lib/python2.7/site-packages
>>> Cleaning up...
>>>
>>> Any idea what can be the cause?
>>>
>>> Thanks, Lars
>>>
>>>  --
> 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/d0eaa3c0-862f-45d5-985b-6aa56d41a56a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d0eaa3c0-862f-45d5-985b-6aa56d41a56a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgwtwat4_vpSLdOEqCX%2BDfiqqVbKXVxDE-H8QhXnOChEJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to