mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
- make extra-vars override all other vars and facts in playbooks
This commit is contained in:
parent
0243b7be7c
commit
f649777072
2 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue