Commit d9b79b1b by James Cammarata

Also template the role name when loading roles

Fixes #12602
parent 9c989780
...@@ -167,6 +167,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment