From e61e8a37f50860534610ef767315d70ba61583a2 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 1 Dec 2014 11:51:09 -0600 Subject: [PATCH] Use extra vars when creating HostVars Fixes #9667 --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 082dd44c8a..ce61e7d90f 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -668,7 +668,7 @@ class Runner(object): ''' executes any module one or more times ''' inject = self.get_inject_vars(host) - hostvars = HostVars(inject['combined_cache'], self.inventory, vault_password=self.vault_pass) + hostvars = HostVars(utils.merge_hash(inject['combined_cache'], self.extra_vars), self.inventory, vault_password=self.vault_pass) inject['hostvars'] = hostvars host_connection = inject.get('ansible_connection', self.transport)