l3ender / nexus-repository-ansiblegalaxy

A Nexus Repository 3 plugin that allows usage of Ansible Galaxy repositories.
30 stars 12 forks source link

Role install support #2

Closed l3ender closed 3 years ago

l3ender commented 3 years ago

This PR adds support for installing roles through a Nexus ansiblegalaxy-proxy repository:

ansible-galaxy role install geerlingguy.docker -s http://localhost:8081/repository/ansible/
l3ender commented 3 years ago

Proxy features are completed and working, but it seems like there is a bug in the ansible-galaxy client which does not honor the download_url location/URL specified in the proxied API response. I've opened https://github.com/ansible/ansible/issues/73103 in the ansible repo and will continue to monitor progress for the resolution.

l3ender commented 3 years ago

I've opened a PR with a fix for the ansible-galaxy issue: https://github.com/ansible/ansible/pull/73114. I'm unsure of when the Ansible team will be able to review, but hopefully they'll be able to merge it to the devel branch and eventually include in a future release.

I'll hold on this repo's role support until there's a clearer idea of when the fix will be available in ansible-galaxy.