diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 5d0cb10236..3ed74be998 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -198,6 +198,9 @@ def get_opt(options, k, defval=""): data = getattr(options, k) except: return defval + if k == "roles_path": + if ":" in data: + data = data.split(':')[0] return data def exit_without_ignore(options, rc=1):