diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index cedf6ffba43..c4323f52d04 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -182,6 +182,9 @@ class Play(object): # dependency name pointing to SCM URL # assume role name is last part of the URL orig_path = utils.repo_url_to_role_name(orig_path) + if ',' in orig_path: + # version information for role dependency used by galaxy + orig_path = orig_path.split(',')[0] role_vars = {} if type(orig_path) == dict: diff --git a/test/integration/galaxy_rolesfile b/test/integration/galaxy_rolesfile index cf1933e6e5a..43fb49e9243 100644 --- a/test/integration/galaxy_rolesfile +++ b/test/integration/galaxy_rolesfile @@ -1,2 +1,2 @@ -git+http://bitbucket.org/willthames/git-ansible-galaxy,v1.2 +git+http://bitbucket.org/willthames/git-ansible-galaxy,v1.3 hg+ssh://hg@bitbucket.org/willthames/hg-ansible-galaxy