Revert to using just the combined_cache for HostVars
This commit is contained in:
parent
28f6a18ef6
commit
e9229cfeaa
1 changed files with 2 additions and 1 deletions
|
@ -615,6 +615,7 @@ class Runner(object):
|
||||||
inject = utils.combine_vars(inject, self.extra_vars)
|
inject = utils.combine_vars(inject, self.extra_vars)
|
||||||
# and then special vars
|
# and then special vars
|
||||||
inject.setdefault('ansible_ssh_user', self.remote_user)
|
inject.setdefault('ansible_ssh_user', self.remote_user)
|
||||||
|
inject['combined_cache'] = combined_cache
|
||||||
inject['group_names'] = host_variables.get('group_names', [])
|
inject['group_names'] = host_variables.get('group_names', [])
|
||||||
inject['groups'] = self.inventory.groups_list()
|
inject['groups'] = self.inventory.groups_list()
|
||||||
inject['vars'] = self.module_vars
|
inject['vars'] = self.module_vars
|
||||||
|
@ -629,7 +630,7 @@ class Runner(object):
|
||||||
''' executes any module one or more times '''
|
''' executes any module one or more times '''
|
||||||
|
|
||||||
inject = self.get_inject_vars(host)
|
inject = self.get_inject_vars(host)
|
||||||
hostvars = HostVars(inject, self.inventory, vault_password=self.vault_pass)
|
hostvars = HostVars(inject['combined_cache'], self.inventory, vault_password=self.vault_pass)
|
||||||
inject['hostvars'] = hostvars
|
inject['hostvars'] = hostvars
|
||||||
|
|
||||||
host_connection = inject.get('ansible_connection', self.transport)
|
host_connection = inject.get('ansible_connection', self.transport)
|
||||||
|
|
Loading…
Reference in a new issue