From 7bbcf5d2d591197c17fc0d3f373baed78fa54a8a Mon Sep 17 00:00:00 2001 From: Matthew Williams Date: Mon, 21 May 2012 21:40:07 -0700 Subject: [PATCH] template path for handlers: include --- lib/ansible/playbook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index e8d83d837ab..0f9acc29a34 100644 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -172,9 +172,9 @@ class PlayBook(object): def _include_handlers(self, play, handler, dirname, new_handlers): ''' load handlers from external files ''' - - path = utils.path_dwim(dirname, handler['include']) inject_vars = self._get_vars(play, dirname) + path = utils.template(handler['include'], inject_vars, SETUP_CACHE) + path = utils.path_dwim(dirname, path) included = utils.template_from_file(path, inject_vars, SETUP_CACHE) included = utils.parse_yaml(included) for x in included: