mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 19:20:22 -07:00
Merge pull request #10329 from bcoca/var_merge_combined
changed from hash_merge to combine vars which resets default to
This commit is contained in:
commit
a675b10b3b
2 changed files with 10 additions and 10 deletions
|
@ -116,8 +116,8 @@ class Play(object):
|
|||
_tasks = ds.pop('tasks', [])
|
||||
_handlers = ds.pop('handlers', [])
|
||||
|
||||
temp_vars = utils.merge_hash(self.vars, self.vars_file_vars)
|
||||
temp_vars = utils.merge_hash(temp_vars, self.playbook.extra_vars)
|
||||
temp_vars = utils.combine_vars(self.vars, self.vars_file_vars)
|
||||
temp_vars = utils.combine_vars(temp_vars, self.playbook.extra_vars)
|
||||
|
||||
ds = template(basedir, ds, temp_vars)
|
||||
ds['tasks'] = _tasks
|
||||
|
@ -646,9 +646,9 @@ class Play(object):
|
|||
dirname = os.path.dirname(original_file)
|
||||
|
||||
# temp vars are used here to avoid trampling on the existing vars structures
|
||||
temp_vars = utils.merge_hash(self.vars, self.vars_file_vars)
|
||||
temp_vars = utils.merge_hash(temp_vars, mv)
|
||||
temp_vars = utils.merge_hash(temp_vars, self.playbook.extra_vars)
|
||||
temp_vars = utils.combine_vars(self.vars, self.vars_file_vars)
|
||||
temp_vars = utils.combine_vars(temp_vars, mv)
|
||||
temp_vars = utils.combine_vars(temp_vars, self.playbook.extra_vars)
|
||||
include_file = template(dirname, tokens[0], temp_vars)
|
||||
include_filename = utils.path_dwim(dirname, include_file)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue