From 5e1dfa94851a5614a1c6ab200d0cdf2c6b50d65c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 13 Oct 2016 22:34:23 +0200 Subject: [PATCH] Do not leak the password in log (#5189) --- lib/ansible/modules/database/postgresql/postgresql_privs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/postgresql/postgresql_privs.py b/lib/ansible/modules/database/postgresql/postgresql_privs.py index 6944b54fcc6..74b2630b747 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_privs.py +++ b/lib/ansible/modules/database/postgresql/postgresql_privs.py @@ -537,7 +537,7 @@ def main(): port=dict(type='int', default=5432), unix_socket=dict(default='', aliases=['login_unix_socket']), login=dict(default='postgres', aliases=['login_user']), - password=dict(default='', aliases=['login_password']) + password=dict(default='', aliases=['login_password'], no_log=True) ), supports_check_mode = True )