From 44a9352338ac73a9e6cb1e626d124e9b3e7980e3 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 12 Apr 2013 20:32:35 -0400 Subject: [PATCH] Also template handlers only at the end. --- lib/ansible/playbook/play.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index ab8ad66a96..6ae9761c2d 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -66,7 +66,8 @@ class Play(object): self._update_vars_files_for_host(None) for key in ds: - if key != 'tasks': + if key != 'tasks' and key != 'handlers': + # we want to template these later to allow inventory-scope a chance to override ds[key] = template.template(basedir, ds[key], self.vars) self._ds = ds