Also template the role name when loading roles

Fixes #12602
pull/12642/head
James Cammarata 9 years ago
parent 9c9897805f
commit d9b79b1bbc

@ -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:

Loading…
Cancel
Save