Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Can't download release due to Github redirect the request #101

Closed
taiansu opened this issue Apr 17, 2018 · 2 comments
Closed

Can't download release due to Github redirect the request #101

taiansu opened this issue Apr 17, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@taiansu
Copy link

taiansu commented Apr 17, 2018

From an unknown time, Github starts to redirect download request to AWS s3. And since using ansible unarchive module with remote_src won't follow the redirect URL, the task will actually download an HTML and report some tar error like this:

fatal: [test -> localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "Failed to find handler for \"/private/var/folders/5m/1f26j_6d3jnbp4y30g8rhlgc0000gn/T/ansible_CxcU89/prometheus-2.2.1.linux-amd64.tar.gz\". Make sure the required command to extract the file is installed. Command \"/usr/bin/tar\" detected as tar type bsd. GNU tar required. Command \"/usr/bin/unzip\" could not handle archive."}

My two cents on this, and according to the discussion from ansible/ansible#19985 (comment), might be split the download and unarchive into two tasks. It will be even greater if we can extract download src as an overwritable variable.

@paulfantom
Copy link
Member

Thanks for mentioning this. I just pushed possible fix for this issue in #102, could you check if it works for you?

@lock
Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants