mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Fix vars_prompt short form support (and mark deprecated)
This commit is contained in:
parent
be7bd392cb
commit
e81947c3b4
3 changed files with 53 additions and 12 deletions
|
@ -88,14 +88,10 @@ class PlaybookExecutor:
|
|||
|
||||
if play.vars_prompt:
|
||||
for var in play.vars_prompt:
|
||||
if 'name' not in var:
|
||||
raise AnsibleError("'vars_prompt' item is missing 'name:'", obj=play._ds)
|
||||
|
||||
vname = var['name']
|
||||
prompt = var.get("prompt", vname)
|
||||
default = var.get("default", None)
|
||||
private = var.get("private", True)
|
||||
|
||||
confirm = var.get("confirm", False)
|
||||
encrypt = var.get("encrypt", None)
|
||||
salt_size = var.get("salt_size", None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue