mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
parent
0c320e1c17
commit
34a504ea10
1 changed files with 34 additions and 26 deletions
|
@ -122,40 +122,48 @@ notes:
|
||||||
EXAMPLES = '''
|
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:
|
||||||
host_name=www1.example.com
|
name: Update of www1
|
||||||
state=present
|
host_name: www1.example.com
|
||||||
minutes=90
|
state: present
|
||||||
server_url=https://monitoring.example.com
|
minutes: 90
|
||||||
login_user=ansible
|
server_url: 'https://monitoring.example.com'
|
||||||
login_password=pAsSwOrD
|
login_user: ansible
|
||||||
|
login_password: pAsSwOrD
|
||||||
|
|
||||||
# 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:
|
||||||
host_name=www1.example.com
|
name: Update of www1
|
||||||
host_groups=Office,Dev
|
host_name: www1.example.com
|
||||||
state=present
|
host_groups:
|
||||||
server_url=https://monitoring.example.com
|
- Office
|
||||||
login_user=ansible
|
- Dev
|
||||||
login_password=pAsSwOrD
|
state: present
|
||||||
|
server_url: 'https://monitoring.example.com'
|
||||||
|
login_user: ansible
|
||||||
|
login_password: pAsSwOrD
|
||||||
|
|
||||||
# Create maintenance window named "update"
|
# Create maintenance window named "update"
|
||||||
# for hosts www1.example.com and db1.example.com and without data collection.
|
# for hosts www1.example.com and db1.example.com and without data collection.
|
||||||
- zabbix_maintenance: name=update
|
- zabbix_maintenance:
|
||||||
host_names=www1.example.com,db1.example.com
|
name: update
|
||||||
state=present
|
host_names:
|
||||||
collect_data=false
|
- www1.example.com
|
||||||
server_url=https://monitoring.example.com
|
- db1.example.com
|
||||||
login_user=ansible
|
state: present
|
||||||
login_password=pAsSwOrD
|
collect_data: false
|
||||||
|
server_url: 'https://monitoring.example.com'
|
||||||
|
login_user: ansible
|
||||||
|
login_password: pAsSwOrD
|
||||||
|
|
||||||
# Remove maintenance window named "Test1"
|
# Remove maintenance window named "Test1"
|
||||||
- zabbix_maintenance: name=Test1
|
- zabbix_maintenance:
|
||||||
state=absent
|
name: Test1
|
||||||
server_url=https://monitoring.example.com
|
state: absent
|
||||||
login_user=ansible
|
server_url: 'https://monitoring.example.com'
|
||||||
login_password=pAsSwOrD
|
login_user: ansible
|
||||||
|
login_password: pAsSwOrD
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue