- make extra-vars override all other vars and facts in playbooks

This commit is contained in:
Seth Vidal 2013-01-30 11:56:04 -05:00
parent 0243b7be7c
commit f649777072
2 changed files with 6 additions and 1 deletions

View file

@ -186,6 +186,9 @@ class Play(object):
else:
vars.update(self.vars)
if type(self.playbook.extra_vars) == dict:
vars.update(self.playbook.extra_vars)
if type(self.vars_prompt) == list:
for var in self.vars_prompt:
if not 'name' in var: