From 3505dcb74c0f552911cce1cdb38c12340b1c0a7c Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Tue, 26 May 2015 15:41:37 +0200 Subject: [PATCH] zabbix_maintenance: prevent to log password --- .../modules/extras/monitoring/zabbix_maintenance.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py b/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py index 02938234fbf..25d7c8df95e 100644 --- a/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py +++ b/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py @@ -48,12 +48,10 @@ options: description: - Zabbix user name. required: true - default: null login_password: description: - Zabbix user password. required: true - default: null host_names: description: - Hosts to manage maintenance window for. @@ -83,7 +81,6 @@ options: description: - Unique name of maintenance window. required: true - default: null desc: description: - Short description of maintenance window. @@ -273,9 +270,9 @@ def main(): host_names=dict(type='list', required=False, default=None, aliases=['host_name']), minutes=dict(type='int', required=False, default=10), host_groups=dict(type='list', required=False, default=None, aliases=['host_group']), - login_user=dict(required=True, default=None), - login_password=dict(required=True, default=None), - name=dict(required=True, default=None), + login_user=dict(required=True), + login_password=dict(required=True, no_log=True), + name=dict(required=True), desc=dict(required=False, default="Created by Ansible"), collect_data=dict(type='bool', required=False, default=True), ),