Hi Toshio

Apologies for the lack of detail, and thanks for following up.  The Ansible 
version is 1.9.4.

The playbook in question is here:

https://github.com/DevOps4Networks/ansible-eclipse

See this section at line 207 of tasks/eclipse.yml:

- name: eclipse | Get eclipse Pydev plugin bundle

  #TODO Test get_url again and raise a bug about spaces in the URL

  #shell: mkdir -p /tmp/pydev; cd /tmp/pydev; wget "{{ pydev_url }}/{{ 
pydev_bundle }}" -O pydev.zip

  get_url: url="{{ pydev_url }}/{{ pydev_bundle }}" dest=/tmp/pydev

  when: eclipse_plugins_pydev_enabled and eclipse_plugins_enabled

What I see with the get_url as shown above is :

failed: [localhost] => {"dest": "/tmp/pydev", "failed": true, "response": 
"HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": 
"http://freefr.dl.sourceforge.net/project/pydev/pydev/PyDev 4.4.0/PyDev 
4.4.0.zip"}

When I comment out the get_url, and instead use the shell command, I get:

    virtualbox-iso: <localhost> REMOTE_MODULE command mkdir -p /tmp/pydev; 
cd /tmp/pydev; wget 
"http://freefr.dl.sourceforge.net/project/pydev/pydev/PyDev 4.4.0/PyDev 
4.4.0.zip" -O pydev.zip #USE_SHELL
    virtualbox-iso: <localhost> EXEC ['/bin/sh', '-c', 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996 && echo 
$HOME/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996']
    virtualbox-iso: <localhost> PUT /tmp/tmpVCp9bn TO 
/home/vagrant/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996/command
    virtualbox-iso: <localhost> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p 
"[sudo via ansible, key=tkmorsunmtemcrgbveavrpuzchnbshbv] password: " -u 
root /bin/sh -c '"'"'echo BECOME-SUCCESS-tkmorsunmtemcrgbveavrpuzchnbshbv; 
LANG=C LC_CTYPE=C /usr/bin/python 
/home/vagrant/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996/command; 
rm -rf 
/home/vagrant/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996/ 
>/dev/null 2>&1'"'"''
    virtualbox-iso: changed: [localhost] => {"changed": true, "cmd": "mkdir 
-p /tmp/pydev; cd /tmp/pydev; wget 
\"http://freefr.dl.sourceforge.net/project/pydev/pydev/PyDev 4.4.0/PyDev 
4.4.0.zip\" -O pydev.zip", "delta": "0:00:04.525719", "end": "2015-11-17 
12:14:18.683421", "rc": 0, "start": "2015-11-17 12:14:14.157702", "stderr": 
"--2015-11-17 12:14:14-- 
 
http://freefr.dl.sourceforge.net/project/pydev/pydev/PyDev%204.4.0/PyDev%204.4.0.zip\nResolving
 
freefr.dl.sourceforge.net (freefr.dl.sourceforge.net)... 88.191.250.136, 
2a01:e0d:1:8:58bf:fa88:0:1\nConnecting to freefr.dl.sourceforge.net 
(freefr.dl.sourceforge.net)|88.191.250.136|:80... connected.\nHTTP request 
sent, awaiting response... 200 OK\nLength: 20099782 (19M) 
[application/octet-stream]\nSaving to: 'pydev.zip'\n\n     0K .......... 
.......... .......... .......... ..........  0%  268K 73s\n    50K 
.......... .......... .......... .......... ..........  0%  669K 51s\n   
100K .......... .......... .......... .......... ..........  0% 12.7M 34s\n 
  150K .......... .......... .......... .......... ..........  1% 1.36M 
29s\n   200K .......... .......... .......... .......... ...

Which is to day that it works.

I tested the unarchive issue again with a space in the file name, and I 
can't reproduce the issue for now. I'll look out for it though.

Regards

Nathan

On Wednesday, November 11, 2015 at 3:33:16 PM UTC+1, tkuratomi wrote:
>
> Could you give some more information?  Which version of ansible?  What 
> error message?  The talk from your playbook that's failing?
>
> Thanks,
> Toshio
> On Nov 10, 2015 8:31 AM, "Nathan Sowatskey" <[email protected] 
> <javascript:>> wrote:
>
>> Hi
>>
>> This URL is for the PyDev plugin for Eclipse:
>>
>> http://freefr.dl.sourceforge.net/project/pydev/pydev/PyDev 4.4.0/PyDev 
>> 4.4.0.zip
>>
>> Note that there is a space in the URL and in the file name itself.
>>
>> Those spaces mean that the get_url plugin, at least on CentOS 7, does not 
>> work for me.
>>
>> Note that using a shell command with wget does work, with the same 
>> variables, that make up the URL and file name, I am using with the get_url 
>> plugin.
>>
>> Further, the space in the file name means that the unarchive plugin does 
>> not work, at least on CentOS 7.
>>
>> This latter issue has started occurring in the last week or so.
>>
>> Note that using a command with unzip does not work either
>>
>> Has anyone else see anything like this?
>>
>> Many thanks
>>
>> Nathan
>>
>> -- 
>> 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:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/f165f030-267c-4d83-8382-dc5232d30499%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/f165f030-267c-4d83-8382-dc5232d30499%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/6e136fcb-364a-4ad9-bd48-831993d9e397%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to