-
Notifications
You must be signed in to change notification settings - Fork 0
/
all_unifi_controller_facts.yml
executable file
·303 lines (255 loc) · 8.43 KB
/
all_unifi_controller_facts.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
#!/usr/bin/env ansible-playbook
---
- name: List Unifi online clients
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_online_clients
register: unifi_online_clients
- name: debug
debug:
msg: "{{ unifi_online_clients }}"
- name: List clients
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_clients
register: unifi_clients
- name: debug
debug:
msg: "{{ unifi_clients }}"
- name: Show all authorizations
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: stat_authorizations
register: unifi_authorizations
- name: debug
debug:
msg: "{{ unifi_authorizations }}"
- name: Show all login sessions
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: stat_sessions
register: unifi_login_sessions
- name: debug
debug:
msg: "{{ unifi_login_sessions }}"
- name: List Unifi Port Forwarding Stats
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: port_forwarding_stats
register: unifi_port_forwarding_stats
- name: debug
debug:
msg: "{{ unifi_port_forwarding_stats }}"
- name: List Unifi Site Health Metrics
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: site_health_metrics
register: unifi_site_health_metrics
- name: debug
debug:
msg: "{{ unifi_site_health_metrics }}"
- name: List Unifi DPI Stats
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: dpi_stats
register: unifi_dpi_stats
- name: debug
debug:
msg: "{{ unifi_dpi_stats }}"
- name: List Unifi Devices
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_devices
register: unifi_devices
- name: debug
debug:
msg: "{{ unifi_devices }}"
- name: List Unifi Tags
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_tags
register: unifi_tags
- name: debug
debug:
msg: "{{ unifi_tags }}"
- name: List Unifi Sites
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_sites
register: unifi_sites
- name: debug
debug:
msg: "{{ unifi_sites }}"
- name: List Unifi Sysinfo
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: sysinfo
register: unifi_sysinfo
- name: debug
debug:
msg: "{{ unifi_sysinfo }}"
- name: List Unifi Admin For All Sites
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_admins_for_all_sites
register: unifi_admins_for_all_sites
- name: debug
debug:
msg: "{{ unifi_admins_for_all_sites }}"
- name: List Unifi Site Settings
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_site_settings
register: unifi_site_settings
- name: debug
debug:
msg: "{{ unifi_site_settings }}"
- name: List Unifi WLAN Configuration
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_wlan_configuration
register: unifi_wlan_configuration
- name: debug
debug:
msg: "{{ unifi_wlan_configuration }}"
- name: List Unifi Network Configuration
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_network_configuration
register: unifi_network_configuration
- name: debug
debug:
msg: "{{ unifi_network_configuration }}"
- name: List Unifi Port Configuration
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_port_configuration
register: unifi_port_configuration
- name: debug
debug:
msg: "{{ unifi_port_configuration }}"
- name: List Unifi Firewall Groups
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_firewall_groups
register: unifi_firewall_groups
- name: debug
debug:
msg: "{{ unifi_firewall_groups }}"
- name: List Unifi Port Forwarding Rules
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_port_forwarding_rules
register: unifi_port_forwarding_rules
- name: debug
debug:
msg: "{{ unifi_port_forwarding_rules }}"
- name: List Unifi Country Codes
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_country_codes
register: unifi_country_codes
- name: debug
debug:
msg: "{{ unifi_country_codes }}"
- name: Unifi Dynamic DNS Configuration
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: dynamic_dns_configuration
register: unifi_dyn_dns
- name: debug
debug:
msg: "{{ unifi_dyn_dns }}"
# - name: List Unifi AutoBackups
# unifi_controller_facts:
# controller_baseURL: "{{ unifi_ctrl_url }}"
# controller_username: "{{ unifi_ctrl_user }}"
# controller_password: "{{ unifi_ctrl_pass }}"
# controller_site: "{{ unifi_ctrl_site }}"
# query: list_auto_backups
# register: unifi_auto_backups
# - name: debug
# debug:
# msg: "{{ unifi_auto_backups }}"
- name: List Unifi Alarms
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_alarms
register: unifi_alarms
- name: debug
debug:
msg: "{{ unifi_alarms }}"
- name: List Unifi Events
unifi_controller_facts:
controller_baseURL: "{{ unifi_ctrl_url }}"
controller_username: "{{ unifi_ctrl_user }}"
controller_password: "{{ unifi_ctrl_pass }}"
controller_site: "{{ unifi_ctrl_site }}"
query: list_events
register: unifi_events
- name: debug
debug:
msg: "{{ unifi_events }}"