Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unarchive remote source from http URL fails #24780

Closed
pvdputte opened this issue May 18, 2017 · 2 comments
Closed

unarchive remote source from http URL fails #24780

pvdputte opened this issue May 18, 2017 · 2 comments
Labels
m:unarchive This issue/PR relates to the unarchive module.

Comments

@pvdputte
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME

unarchive

ANSIBLE VERSION
$ ansible --version
ansible 2.4.0 (devel 5741712a09) last updated 2017/05/18 16:08:41 (GMT +200)
  config file = 
  configured module search path = [u'/home/pvdputte/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/pvdputte/VC/vendor/ansible-master/lib/ansible
  executable location = /home/pvdputte/VC/vendor/ansible-master/bin/ansible
  python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]

OS / ENVIRONMENT

Ubuntu 14.04 'Trusty', managing Debian 7.0 'Wheezy'

SUMMARY

unarchive in current master won't work with remote files anymore. Simply copying lib/ansible/plugins/action/unarchive.py and lib/ansible/modules/files/unarchive.py from ansible 2.3 makes it work again.

Perhaps also check out #17009

STEPS TO REPRODUCE
- name: "install AWStats"
  unarchive:
    remote_src: "yes"
    src:        "http://netix.dl.sourceforge.net/project/awstats/AWStats/7.5/awstats-7.5.tar.gz"
    dest:       "/tmp"
    owner:      "root"
    group:      "root"
    keep_newer: "yes"
    creates:    "/tmp/awstats-7.5"
EXPECTED RESULTS

It is expected that the file will be properly downloaded and extracted to the destination directory.

ACTUAL RESULTS
TASK [hclwrk-init : install AWStats] *******************************************
fatal: [com-dhclwrk001.srv.combell-ops.net]: FAILED! => {"changed": false, "failed": true, "msg": "Source 'http://netix.dl.sourceforge.net/project/awstats/AWStats/7.5/awstats-7.5.tar.gz' failed to transfer"}

@sivel
Copy link
Member

sivel commented May 18, 2017

Closing as a duplicate of #23591

@sivel sivel closed this as completed May 18, 2017
@pvdputte
Copy link
Author

I thought this was different as this was with python2. But indeed, PR#24732 fixed it too.

@dagwieers dagwieers added the m:unarchive This issue/PR relates to the unarchive module. label Sep 27, 2017
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
m:unarchive This issue/PR relates to the unarchive module.
Projects
None yet
Development

No branches or pull requests

3 participants