summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2015-10-06 03:33:08 -0400
committerJames Cammarata <jimi@sngx.net>2015-10-06 03:33:08 -0400
commitd9b79b1bbca6be09910d5af201d0ee00462a7abf (patch)
treeb121020925e9ea7f40662c4c8a1d1c8bdae4e0b3
parent9c9897805f00d26e41991a9c14e65e97bfa8c622 (diff)
downloadansible-d9b79b1bbca6be09910d5af201d0ee00462a7abf.tar.gz
Also template the role name when loading roles
Fixes #12602
-rw-r--r--lib/ansible/playbook/role/definition.py1
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: