From 187619c7fe9dda84fbcc4adadb70f1191f023882 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 13 May 2014 11:24:15 -0500 Subject: [PATCH] Use utils.combine_vars on vars_files data Fixes #7345 --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index b41c676a7b..1465e3f2a1 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -785,7 +785,7 @@ class Play(object): """ update a host's varscache with new var data """ data = utils.combine_vars(inject, data) - self.playbook.VARS_CACHE[host].update(data) + self.playbook.VARS_CACHE[host] = utils.combine_vars(self.playbook.VARS_CACHE.get(host, {}), data) self.playbook.callbacks.on_import_for_host(host, filename4) def process_files(filename, filename2, filename3, filename4, host=None):