mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 09:07:03 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
16
roles/pve/tasks/zabbix.yml
Normal file
16
roles/pve/tasks/zabbix.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
- name: Check if check_pve_sudo is installed
|
||||
stat: path=/var/lib/zabbix/bin/util_populate_pve_cache
|
||||
register: pve_zabbix_scripts
|
||||
tags: pve,zabbix
|
||||
|
||||
- name: Setup a cron job for Zabbix monitoring cache population
|
||||
cron:
|
||||
name: pve_zabbix_cache
|
||||
cron_file: pve_zabbix_cache
|
||||
user: root
|
||||
job: "/var/lib/zabbix/bin/util_populate_pve_cache"
|
||||
minute: "*/5"
|
||||
state: "{{ (pve_zabbix_cache and pve_zabbix_scripts.stat.exists) | ternary('present','absent') }}"
|
||||
tags: pve,zabbix
|
Reference in New Issue
Block a user