Merge pull request #1083 from dagwieers/prompt-template

Template the variable prompt to customize the message
pull/1081/merge
Michael DeHaan 12 years ago
commit b45437541a

@ -165,7 +165,7 @@ class Play(object):
raise errors.AnsibleError("'vars_prompt' item is missing 'name:'") raise errors.AnsibleError("'vars_prompt' item is missing 'name:'")
vname = var['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) private = var.get("private", True)
confirm = var.get("confirm", False) confirm = var.get("confirm", False)

Loading…
Cancel
Save