summaryrefslogtreecommitdiff
path: root/monitoring
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-01 09:54:56 +0000
committerRené Moser <mail@renemoser.net>2016-12-01 10:54:56 +0100
commitee35620c75e59fcbbe91671794c5a64992ca3416 (patch)
tree779f661b53d334716a32e7fdb9481451f0f21374 /monitoring
parentae2a0edb0a423fb06c5363ad6620a98719639d3a (diff)
downloadansible-modules-extras-ee35620c75e59fcbbe91671794c5a64992ca3416.tar.gz
Native YAML (#3585)
* Native YAML * Fix YAML lists
Diffstat (limited to 'monitoring')
-rw-r--r--monitoring/zabbix_maintenance.py60
1 files changed, 34 insertions, 26 deletions
diff --git a/monitoring/zabbix_maintenance.py b/monitoring/zabbix_maintenance.py
index 89f792ce..247b0a8e 100644
--- a/monitoring/zabbix_maintenance.py
+++ b/monitoring/zabbix_maintenance.py
@@ -122,40 +122,48 @@ notes:
EXAMPLES = '''
# Create maintenance window named "Update of www1"
# for host www1.example.com for 90 minutes
-- zabbix_maintenance: name="Update of www1"
- host_name=www1.example.com
- state=present
- minutes=90
- server_url=https://monitoring.example.com
- login_user=ansible
- login_password=pAsSwOrD
+- zabbix_maintenance:
+ name: Update of www1
+ host_name: www1.example.com
+ state: present
+ minutes: 90
+ server_url: 'https://monitoring.example.com'
+ login_user: ansible
+ login_password: pAsSwOrD
# Create maintenance window named "Mass update"
# for host www1.example.com and host groups Office and Dev
-- zabbix_maintenance: name="Update of www1"
- host_name=www1.example.com
- host_groups=Office,Dev
- state=present
- server_url=https://monitoring.example.com
- login_user=ansible
- login_password=pAsSwOrD
+- zabbix_maintenance:
+ name: Update of www1
+ host_name: www1.example.com
+ host_groups:
+ - Office
+ - Dev
+ state: present
+ server_url: 'https://monitoring.example.com'
+ login_user: ansible
+ login_password: pAsSwOrD
# Create maintenance window named "update"
# for hosts www1.example.com and db1.example.com and without data collection.
-- zabbix_maintenance: name=update
- host_names=www1.example.com,db1.example.com
- state=present
- collect_data=false
- server_url=https://monitoring.example.com
- login_user=ansible
- login_password=pAsSwOrD
+- zabbix_maintenance:
+ name: update
+ host_names:
+ - www1.example.com
+ - db1.example.com
+ state: present
+ collect_data: false
+ server_url: 'https://monitoring.example.com'
+ login_user: ansible
+ login_password: pAsSwOrD
# Remove maintenance window named "Test1"
-- zabbix_maintenance: name=Test1
- state=absent
- server_url=https://monitoring.example.com
- login_user=ansible
- login_password=pAsSwOrD
+- zabbix_maintenance:
+ name: Test1
+ state: absent
+ server_url: 'https://monitoring.example.com'
+ login_user: ansible
+ login_password: pAsSwOrD
'''
import datetime