|
|
@ -33,8 +33,8 @@ options:
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create or remove a maintenance window.
|
|
|
|
- Create or remove a maintenance window.
|
|
|
|
required: true
|
|
|
|
required: false
|
|
|
|
default: null
|
|
|
|
default: present
|
|
|
|
choices: [ "present", "absent" ]
|
|
|
|
choices: [ "present", "absent" ]
|
|
|
|
server_url:
|
|
|
|
server_url:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -267,7 +267,7 @@ def get_host_ids(zbx, host_names):
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
module = AnsibleModule(
|
|
|
|
module = AnsibleModule(
|
|
|
|
argument_spec=dict(
|
|
|
|
argument_spec=dict(
|
|
|
|
state=dict(required=True, default=None, choices=['present', 'absent']),
|
|
|
|
state=dict(required=False, default='present', choices=['present', 'absent']),
|
|
|
|
server_url=dict(required=True, default=None, aliases=['url']),
|
|
|
|
server_url=dict(required=True, default=None, aliases=['url']),
|
|
|
|
host_names=dict(type='list', required=False, default=None, aliases=['host_name']),
|
|
|
|
host_names=dict(type='list', required=False, default=None, aliases=['host_name']),
|
|
|
|
minutes=dict(type='int', required=False, default=10),
|
|
|
|
minutes=dict(type='int', required=False, default=10),
|
|
|
|