From d9b79b1bbca6be09910d5af201d0ee00462a7abf Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 6 Oct 2015 03:33:08 -0400 Subject: [PATCH] Also template the role name when loading roles Fixes #12602 --- lib/ansible/playbook/role/definition.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/playbook/role/definition.py b/lib/ansible/playbook/role/definition.py index 3c2661a527c..34177685152 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: