Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
499 B

---
- 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