ansible-galaxy should support git+ssh urls.
See original GitHub issueThe examples given for ansible-galaxy
imply that it can fetch roles via git+ssh
.
However, supplying such a url causes it to fetch from https://galaxy.ansible.com
and fail if the role is not found there.
It would be convenient, for use-cases where publishing via galaxy.ansible.com
is prohibited or inconvenient, for ansible-galaxy
to have the capability of fetching roles via the git+ssh
protocol.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
ansible-galaxy and git clone from Bitbucket.org - Stack Overflow
Maybe the scp syntax does not work. The url one might: ssh://git@bitbucket.org/myrepo/nginx.git. Try, as in this ansible issue: Direct copy from github ......
Read more >Galaxy User Guide - Ansible Documentation
Embedding credentials into a git URI is not secure. Use safe authentication options to prevent your credentials from being exposed in logs or...
Read more >Installing content — Ansible Documentation
The source of the role, and a required attribute. Specify a role from Galaxy by using the format namespace. role_name, or provide a...
Read more >Distributing collections - Ansible Documentation
Review the version number in your galaxy.yml file. Each time you publish your collection, it must have a new version number. · Run...
Read more >Galaxy User Guide - Ansible Documentation
You can use the ansible-galaxy collection install command to install a ... using git+ssh - src: git@gitlab.company.com:mygroup/ansible-base.git scm: git ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m trying this exactly like that today, but it’s trying to get the repo from the galaxy:
This is the verbose output of
/usr/local/bin/ansible-galaxy collection install -vvvv -p /usr/local/lib -r ansible_collections/requirements.yml
I’m officially confused…
@pillarsdotnet glad this could get cleared up!