From 0dd3296ddd56a7ccc1c85a8ff418639145e26623 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 7 Apr 2016 14:58:15 +0200 Subject: [PATCH] Mark password as 'no_log', to avoid leaking it --- lib/ansible/modules/extras/notification/mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/notification/mqtt.py b/lib/ansible/modules/extras/notification/mqtt.py index d701bd9348a..efc54423aaa 100644 --- a/lib/ansible/modules/extras/notification/mqtt.py +++ b/lib/ansible/modules/extras/notification/mqtt.py @@ -113,14 +113,14 @@ def main(): module = AnsibleModule( argument_spec=dict( server = dict(default = 'localhost'), - port = dict(default = 1883), + port = dict(default = 1883, type='int'), topic = dict(required = True), payload = dict(required = True), client_id = dict(default = None), qos = dict(default="0", choices=["0", "1", "2"]), retain = dict(default=False, type='bool'), username = dict(default = None), - password = dict(default = None), + password = dict(default = None, no_log=True), ), supports_check_mode=True )