-
Notifications
You must be signed in to change notification settings - Fork 173
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
win_package doesn't work with https URL to msixbundle #503
Comments
I hit this also, trying to install Git from https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.2/Git-2.42.0.2-64-bit.exe |
FWIW, I switch the source to a different domain over https, and it worked. I seem to recall having some problem in the past relating to getting files from Github. It wasn't within Ansible but I believe the underlying problem was redirection handling. Does this help you, @m-khvoinitsky : https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_package_module.html#parameter-follow_redirects |
At the moment I can't verify as currently the related code is a bit different. But it seems unlikely since doc says:
I don't think that downloading a file requires something different than GET request. |
Yeah, confirmed it doesn't work for me sadly (whether safe/all). |
This is likely related to the format of the resultant links that Git provides from the redirect. For instance, this URL:
...returns a 302 redirect that seems to change over time. The URL I was redirected to yesterday (that worked just fine then) returns a 401 today. But, the redirect takes the general form of:
Notably, the redirected URL doesn't end with Whatever the case, there are 3 reasonable ways I see for
|
SUMMARY
win_package doesn't work with https URL to msixbundle, only local URLs work
ISSUE TYPE
COMPONENT NAME
win_package
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
Controller OS: archlinux
Target OS: Windows 10
STEPS TO REPRODUCE
This doesn't work:
This works:
The text was updated successfully, but these errors were encountered: