ansible / ansible

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
https://www.ansible.com/
GNU General Public License v3.0
62.77k stars 23.89k forks source link

Support relative `download_url` in API responses for `ansible-galaxy` #84213

Open sivel opened 16 hours ago

sivel commented 16 hours ago

Summary

There are some technical implications within galaxy_ng and the larger ecosystem with continuing to provide a fully quallified download_url. With all other galaxy URLs we handle relative URLs, just not with download_url.

Extend relative URL building to the download_url if the URL provided by the API is relative.

This should also be considered applicable for backporting.

Issue Type

Bug Report

Component Name

lib/ansible/galaxy/api.py

Ansible Version

$ ansible --version

Configuration

# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all

OS / Environment

N/A

Steps to Reproduce

Expected Results

N/A

Actual Results

N/A

Code of Conduct

ansibot commented 16 hours ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the component bot command.