mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
zabbix: improve arguments and prevent to log password
This commit is contained in:
parent
a9449aa078
commit
47eab56280
3 changed files with 10 additions and 10 deletions
|
@ -335,13 +335,13 @@ def main():
|
|||
argument_spec=dict(
|
||||
server_url=dict(required=True, default=None, 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
|
||||
|
|
|
@ -168,12 +168,12 @@ def main():
|
|||
argument_spec=dict(
|
||||
server_url=dict(required=True, default=None, 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
|
||||
)
|
||||
|
|
|
@ -314,9 +314,9 @@ def main():
|
|||
argument_spec=dict(
|
||||
server_url=dict(required=True, default=None, 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