From cc85473c1eae2113d8f0c2bad6165b0034ecca5b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 28 Jul 2015 19:07:47 -0400 Subject: [PATCH] show role search path when not finding a role fixes #9770 --- lib/ansible/playbook/role/definition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/role/definition.py b/lib/ansible/playbook/role/definition.py index d8dbb464da..48d96e6f09 100644 --- a/lib/ansible/playbook/role/definition.py +++ b/lib/ansible/playbook/role/definition.py @@ -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): '''