deploy zabbix files to monitor certificates
This commit is contained in:
@@ -52,4 +52,9 @@
|
||||
- name: goaccess
|
||||
import_tasks: goaccess.yml
|
||||
when: apache_stats
|
||||
tags: stats
|
||||
tags: stats
|
||||
|
||||
- name: zabbix setup
|
||||
import_tasks: zabbix.yml
|
||||
when: apache_use_zabbix and apache_use_ssl
|
||||
tags: zabbix, ssl
|
||||
13
tasks/zabbix.yml
Normal file
13
tasks/zabbix.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: deploy zabbix lld script
|
||||
copy:
|
||||
src: lld_certlist.py
|
||||
dest: /etc/zabbix/scripts
|
||||
group: zabbix
|
||||
mode: 0750
|
||||
|
||||
- name: deploy zabbix userparameter
|
||||
copy:
|
||||
dest: /etc/zabbix/zabbix_agentd.d/user_parameter_certificate_discovery.conf
|
||||
content: "UserParameter=certificate.discovery,/etc/zabbix/scripts/lld_certlist.py"
|
||||
notify: restart zabbix_agentd
|
||||
Reference in New Issue
Block a user