diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 1abfe681cc..cbfd315e36 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -643,7 +643,7 @@ class PlaybookCallbacks(object): def on_vars_prompt(self, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None): - if prompt and default: + if prompt and default is not None: msg = "%s [%s]: " % (prompt, default) elif prompt: msg = "%s: " % prompt