|
|
@ -36,18 +36,15 @@ options:
|
|
|
|
- Url of Zabbix server, with protocol (http or https).
|
|
|
|
- Url of Zabbix server, with protocol (http or https).
|
|
|
|
C(url) is an alias for C(server_url).
|
|
|
|
C(url) is an alias for C(server_url).
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
|
|
|
|
aliases: [ "url" ]
|
|
|
|
aliases: [ "url" ]
|
|
|
|
login_user:
|
|
|
|
login_user:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Zabbix user name.
|
|
|
|
- Zabbix user name.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
|
|
|
|
login_password:
|
|
|
|
login_password:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Zabbix user password.
|
|
|
|
- Zabbix user password.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create or delete host group.
|
|
|
|
- Create or delete host group.
|
|
|
@ -148,7 +145,7 @@ class HostGroup(object):
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
module = AnsibleModule(
|
|
|
|
module = AnsibleModule(
|
|
|
|
argument_spec=dict(
|
|
|
|
argument_spec=dict(
|
|
|
|
server_url=dict(required=True, default=None, aliases=['url']),
|
|
|
|
server_url=dict(required=True, aliases=['url']),
|
|
|
|
login_user=dict(required=True),
|
|
|
|
login_user=dict(required=True),
|
|
|
|
login_password=dict(required=True),
|
|
|
|
login_password=dict(required=True),
|
|
|
|
host_groups=dict(required=True),
|
|
|
|
host_groups=dict(required=True),
|
|
|
|