mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1083 from dagwieers/prompt-template
Template the variable prompt to customize the message
This commit is contained in:
commit
b45437541a
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class Play(object):
|
|||
raise errors.AnsibleError("'vars_prompt' item is missing 'name:'")
|
||||
|
||||
vname = var['name']
|
||||
prompt = "%s: " % var.get("prompt", vname)
|
||||
prompt = util.template(None, "%s: " % var.get("prompt", vname), self.vars)
|
||||
private = var.get("private", True)
|
||||
|
||||
confirm = var.get("confirm", False)
|
||||
|
|
Loading…
Reference in a new issue