diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 5b02a9d8f2a..f29bd36f069 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -611,6 +611,7 @@ class Runner(object): # since some of the variables we'll be replacing may be contained there too module_vars_inject = utils.combine_vars(host_variables, combined_cache.get(host, {})) module_vars_inject = utils.combine_vars(self.module_vars, module_vars_inject) + module_vars_inject = utils.combine_vars(module_vars_inject, self.extra_vars) module_vars = template.template(self.basedir, self.module_vars, module_vars_inject) # remove bad variables from the module vars, which may be in there due