Also template the role name when loading roles

Fixes #12602
This commit is contained in:
James Cammarata
2015-10-06 03:33:08 -04:00
parent 9c9897805f
commit d9b79b1bbc

View File

@@ -167,6 +167,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
all_vars = dict()
templar = Templar(loader=self._loader, variables=all_vars)
role_name = templar.template(role_name)
# now iterate through the possible paths and return the first one we find
for path in role_search_paths: