mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
bea0845322
commit
a01d97f12b
1 changed files with 2 additions and 2 deletions
|
@ -236,10 +236,10 @@ class PlayBook(object):
|
||||||
return vars.copy()
|
return vars.copy()
|
||||||
|
|
||||||
play_vars = None
|
play_vars = None
|
||||||
if isinstance(play_vars, dict):
|
if isinstance(play['vars'], dict):
|
||||||
play_vars = play['vars'].copy()
|
play_vars = play['vars'].copy()
|
||||||
play_vars.update(vars)
|
play_vars.update(vars)
|
||||||
elif isinstance(play_vars, list):
|
elif isinstance(play['vars'], list):
|
||||||
# nobody should really do this, but handle vars: a=1 b=2
|
# nobody should really do this, but handle vars: a=1 b=2
|
||||||
play_vars = play['vars'][:]
|
play_vars = play['vars'][:]
|
||||||
play_vars.extend([{k:v} for k,v in vars.iteritems()])
|
play_vars.extend([{k:v} for k,v in vars.iteritems()])
|
||||||
|
|
Loading…
Reference in a new issue