mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
70cde3c651
commit
fa358d9d61
1 changed files with 4 additions and 1 deletions
|
@ -111,6 +111,9 @@ class PlaybookExecutor:
|
|||
if vname not in play.vars:
|
||||
if self._tqm:
|
||||
self._tqm.send_callback('v2_playbook_on_vars_prompt', vname, private, prompt, encrypt, confirm, salt_size, salt, default)
|
||||
if self._options.syntax:
|
||||
play.vars[vname] = default
|
||||
else:
|
||||
play.vars[vname] = self._do_var_prompt(vname, private, prompt, encrypt, confirm, salt_size, salt, default)
|
||||
|
||||
# Create a temporary copy of the play here, so we can run post_validate
|
||||
|
|
Loading…
Reference in a new issue