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: 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: 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: PUT /tmp/tmpVCp9bn TO /home/vagrant/.ansible/tmp/ansible-tmp-1447762454.08-148319008390996/command
virtualbox-iso: 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