mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
if a playbook has no vars - still include the global vars
This commit is contained in:
@@ -135,7 +135,7 @@ class PlayBook(object):
|
|||||||
k, v = item.items()[0]
|
k, v = item.items()[0]
|
||||||
vars[k] = v
|
vars[k] = v
|
||||||
else:
|
else:
|
||||||
vars = play['vars']
|
vars.update(play['vars'])
|
||||||
|
|
||||||
vars_prompt = play.get('vars_prompt', {})
|
vars_prompt = play.get('vars_prompt', {})
|
||||||
if type(vars_prompt) != dict:
|
if type(vars_prompt) != dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user