Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/ansible/galaxy/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ def install(self):
if role_versions and self.version not in [a.get('name', None) for a in role_versions]:
raise AnsibleError("- the specified version (%s) of %s was not found in the list of available versions (%s)." % (self.version, self.name, role_versions))

matched_version = filter( lambda v : v['name'] == self.version , role_versions )
if len(matched_version) == 1 :
self.src = matched_version[0].get('download', self.src) or self.src

tmp_file = self.fetch(role_data)

else:
Expand Down