|
|
@ -119,8 +119,18 @@ EXAMPLES = '''
|
|
|
|
user=ansible
|
|
|
|
user=ansible
|
|
|
|
passwd=pAsSwOrD
|
|
|
|
passwd=pAsSwOrD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create maintenance window named "update"
|
|
|
|
|
|
|
|
# for host www1.example.com and without data collection.
|
|
|
|
|
|
|
|
- zabbix_maintenance: name=update
|
|
|
|
|
|
|
|
host=www1.example.com
|
|
|
|
|
|
|
|
state=present
|
|
|
|
|
|
|
|
collect_data=false
|
|
|
|
|
|
|
|
server=https://monitoring.example.com
|
|
|
|
|
|
|
|
user=ansible
|
|
|
|
|
|
|
|
passwd=pAsSwOrD
|
|
|
|
|
|
|
|
|
|
|
|
# Remove maintenance window named "Test1"
|
|
|
|
# Remove maintenance window named "Test1"
|
|
|
|
- zabbix_maintenance: name=Test1"
|
|
|
|
- zabbix_maintenance: name=Test1
|
|
|
|
state=absent
|
|
|
|
state=absent
|
|
|
|
server=https://monitoring.example.com
|
|
|
|
server=https://monitoring.example.com
|
|
|
|
user=ansible
|
|
|
|
user=ansible
|
|
|
|