Skip to content

Commit

Permalink
Fixes to variable issues introduced by recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jimi-c committed Apr 3, 2014
1 parent 2fd6d16 commit 317c2f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ansible/playbook/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ def _get_vars(self):
else:
raise errors.AnsibleError("'vars_prompt' section is malformed, see docs")

if type(self.playbook.extra_vars) == dict:
vars = utils.combine_vars(vars, self.playbook.extra_vars)

return vars

# *************************************************
Expand Down Expand Up @@ -766,7 +769,8 @@ def _update_vars_files_for_host(self, host, vault_password=None):
if host is not None:
inject = {}
inject.update(self.playbook.inventory.get_variables(host, vault_password=vault_password))
inject.update(self.playbook.VARS_CACHE[host])
inject.update(self.playbook.SETUP_CACHE.get(host, {}))
inject.update(self.playbook.VARS_CACHE.get(host, {}))

for filename in self.vars_files:

Expand Down

0 comments on commit 317c2f4

Please sign in to comment.