From b8706a1f9568cfbf8e9ad8bdc97b36147b937e43 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 7 Apr 2016 14:59:11 +0200 Subject: [PATCH] Do not leak mail password by error --- lib/ansible/modules/extras/notification/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/notification/mail.py b/lib/ansible/modules/extras/notification/mail.py index e63a9536996..c8b2bb30c78 100644 --- a/lib/ansible/modules/extras/notification/mail.py +++ b/lib/ansible/modules/extras/notification/mail.py @@ -178,7 +178,7 @@ def main(): module = AnsibleModule( argument_spec = dict( username = dict(default=None), - password = dict(default=None), + password = dict(default=None, no_log=True), host = dict(default='localhost'), port = dict(default='25'), sender = dict(default='root', aliases=['from']),