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
commit d9b79b1bbc

View file

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