Commit 069feb5d by Dag Wieers

Template the variable prompt to customize the message

We have a password-prompt for a configurable login name. Since we require to ask the password for this specific login, it is important to indicate what password needs to be prov ided on the prompt. So the prompt needs to be templated. That's what this patch does.
parent 3939f7a8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment