show role search path when not finding a role

fixes #9770
pull/9365/head
Brian Coca 9 years ago
parent adc8a32c65
commit cc85473c1e

@ -155,7 +155,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
# FIXME: make the parser smart about list/string entries in
# the yaml so the error line/file can be reported here
raise AnsibleError("the role '%s' was not found" % role_name)
raise AnsibleError("the role '%s' was not found in %s" % (role_name, ":".join(role_search_paths)))
def _split_role_params(self, ds):
'''

Loading…
Cancel
Save