diff options
author | Rene Moser <mail@renemoser.net> | 2015-05-26 15:33:50 +0200 |
---|---|---|
committer | Rene Moser <mail@renemoser.net> | 2015-05-26 15:33:50 +0200 |
commit | 9d07fb9618c601c4f709950189914873e2a289d7 (patch) | |
tree | 79a687fbcf06f7c06078288d6335e8b7898a7a00 /monitoring/zabbix_hostmacro.py | |
parent | c9dfeb07c13e3814706280f0277c537f148dd856 (diff) | |
download | ansible-modules-extras-9d07fb9618c601c4f709950189914873e2a289d7.tar.gz |
zabbix: improve arguments and prevent to log password
Diffstat (limited to 'monitoring/zabbix_hostmacro.py')
-rw-r--r-- | monitoring/zabbix_hostmacro.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monitoring/zabbix_hostmacro.py b/monitoring/zabbix_hostmacro.py index 873b3390..fc77df47 100644 --- a/monitoring/zabbix_hostmacro.py +++ b/monitoring/zabbix_hostmacro.py @@ -170,12 +170,12 @@ def main(): argument_spec=dict( server_url=dict(required=True, aliases=['url']), login_user=dict(required=True), - login_password=dict(required=True), + login_password=dict(required=True, no_log=True), host_name=dict(required=True), macro_name=dict(required=True), macro_value=dict(required=True), - state=dict(default="present"), - timeout=dict(default=10) + state=dict(default="present", choices=['present', 'absent']), + timeout=dict(type='int', default=10) ), supports_check_mode=True ) |