zabbix_maintenance examples fixes

This commit is contained in:
Alexander Bulimov 2013-11-26 18:45:33 +04:00 committed by Michael DeHaan
parent 851efe0413
commit edebadc305

View file

@ -102,7 +102,7 @@ EXAMPLES = '''
# Create maintenance window named "Update of www1" # Create maintenance window named "Update of www1"
# for host www1.example.com for 90 minutes # for host www1.example.com for 90 minutes
- zabbix_maintenance: name="Update of www1" - zabbix_maintenance: name="Update of www1"
host=www1.example.com host=www1.example.com
state=present state=present
minutes=90 minutes=90
server=https://monitoring.example.com server=https://monitoring.example.com
@ -111,16 +111,26 @@ EXAMPLES = '''
# Create maintenance window named "Mass update" # Create maintenance window named "Mass update"
# for host www1.example.com and host groups Office and Dev # for host www1.example.com and host groups Office and Dev
- zabbix_maintenance: name="Update of www1" - zabbix_maintenance: name="Update of www1"
host=www1.example.com host=www1.example.com
group=Office,Dev group=Office,Dev
state=present state=present
server=https://monitoring.example.com server=https://monitoring.example.com
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