1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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: