diff options
author | James Cammarata <jimi@sngx.net> | 2015-10-06 03:33:08 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-10-06 03:33:08 -0400 |
commit | d9b79b1bbca6be09910d5af201d0ee00462a7abf (patch) | |
tree | b121020925e9ea7f40662c4c8a1d1c8bdae4e0b3 | |
parent | 9c9897805f00d26e41991a9c14e65e97bfa8c622 (diff) | |
download | ansible-d9b79b1bbca6be09910d5af201d0ee00462a7abf.tar.gz |
Also template the role name when loading roles
Fixes #12602
-rw-r--r-- | lib/ansible/playbook/role/definition.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/playbook/role/definition.py b/lib/ansible/playbook/role/definition.py index 3c2661a527..3417768515 100644 --- a/lib/ansible/playbook/role/definition.py +++ b/lib/ansible/playbook/role/definition.py @@ -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: |