1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Use utils.combine_vars on vars_files data

Fixes #7345
This commit is contained in:
James Cammarata 2014-05-13 11:24:15 -05:00
parent 809b931640
commit 187619c7fe

View file

@ -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):