-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.yml
More file actions
77 lines (75 loc) · 2.87 KB
/
dashboard.yml
File metadata and controls
77 lines (75 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
- hosts: ssfnzas911
gather_facts: no
tasks:
- name: create dashboard
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "Test Dashboard"
private: 0
users:
- {'userid': '100', 'permission': '2'}
userGroups:
- {'permission': '3', 'usrgrpid': '13'}
- name: create another dashboard
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "I am board"
userid: "100"
- name: create another dashboard
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "rainbowdashboard"
widgets:
- {'type': 'problems', 'name': 'idk', 'x': '0', 'y': '0', 'width': '12', 'height': '5', 'view_mode': '0', 'fields': []}
- {'type': 'map', 'name': 'help me', 'x': '13', 'y': '6', 'width': '5', 'height': '5', 'view_mode': '0', 'fields': []}
# just play around with create, dump, delete, import
- name: create foobar
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "foobar"
users:
- {'userid': '100', 'permission': '2'}
userGroups:
- {'permission': '3', 'usrgrpid': '13'}
widgets:
- {'type': 'actionlog', 'name': 'actions to the log', 'x': '0', 'y': '0', 'width': '7', 'height': '3', 'view_mode': '0', 'fields': []}
- {'type': 'clock', 'name': 'what time is it?', 'x': '15', 'y': '0', 'width': '4', 'height': '3', 'view_mode': '0', 'fields': []}
- {'type': 'favgraphs', 'name': 'BEST.GRAPH.EVER.', 'x': '0', 'y': '3', 'width': '15', 'height': '4', 'view_mode': '0', 'fields': []}
- name: dump foobar
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "foobar"
state: dump
dump_name: "dump_of_foobar"
- name: delete foobar
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "foobar"
state: "absent"
- name: import me
local_action:
module: zabbix_dashboard
server_url: "{{ zabbix_apiurl }}"
login_user: "{{ zabbix_apiuser }}"
login_password: "{{ zabbix_apipw }}"
name: "foobar"
state: import
dump_name: "dump_of_foobar"