mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow github style ssh repo names
This commit is contained in:
parent
537472f42c
commit
d6a725659e
3 changed files with 7 additions and 1 deletions
|
@ -362,7 +362,7 @@ def repo_url_to_role_name(repo_url):
|
|||
# gets the role name out of a repo like
|
||||
# http://git.example.com/repos/repo.git" => "repo"
|
||||
|
||||
if '://' not in repo_url:
|
||||
if '://' not in repo_url and '@' not in repo_url:
|
||||
return repo_url
|
||||
trailing_path = repo_url.split('/')[-1]
|
||||
if trailing_path.endswith('.git'):
|
||||
|
|
|
@ -6,3 +6,8 @@
|
|||
|
||||
- src: https://bitbucket.org/willthames/http-ansible-galaxy/get/master.tar.gz
|
||||
name: http-role
|
||||
|
||||
- src: git@github.com:geerlingguy/ansible-role-php.git
|
||||
scm: git
|
||||
name: php
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
git+http://bitbucket.org/willthames/git-ansible-galaxy,v1.4
|
||||
hg+http://bitbucket.org/willthames/hg-ansible-galaxy
|
||||
https://bitbucket.org/willthames/http-ansible-galaxy/get/master.tar.gz,,http-role
|
||||
git+git@github.com:geerlingguy/ansible-role-php.git
|
||||
|
|
Loading…
Reference in a new issue