zabbix: improve arguments and prevent to log password
This commit is contained in:
parent
c9dfeb07c1
commit
9d07fb9618
3 changed files with 10 additions and 10 deletions
|
@ -338,13 +338,13 @@ 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),
|
||||
host_groups=dict(required=False),
|
||||
link_templates=dict(required=False),
|
||||
status=dict(default="enabled"),
|
||||
state=dict(default="present"),
|
||||
timeout=dict(default=10),
|
||||
status=dict(default="enabled", choices=['enabled', 'disabled']),
|
||||
state=dict(default="present", choices=['present', 'absent']),
|
||||
timeout=dict(type='int', default=10),
|
||||
interfaces=dict(required=False)
|
||||
),
|
||||
supports_check_mode=True
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -317,9 +317,9 @@ def main():
|
|||
argument_spec=dict(
|
||||
server_url=dict(required=True, aliases=['url']),
|
||||
login_user=dict(required=True),
|
||||
login_password=dict(required=True),
|
||||
timeout=dict(default=10),
|
||||
screens=dict(required=True)
|
||||
login_password=dict(required=True, no_log=True),
|
||||
timeout=dict(type='int', default=10),
|
||||
screens=dict(type='dict', required=True)
|
||||
),
|
||||
supports_check_mode=True
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue