diff --git a/zabbix-server/tasks/main.yml b/zabbix-server/tasks/main.yml index 5fe29f7b68c4fbc6307781011d0e97517a2e383b..e3c5fb57b61c83fd216bb5e774eb29b71a2acbe1 100644 --- a/zabbix-server/tasks/main.yml +++ b/zabbix-server/tasks/main.yml @@ -126,6 +126,18 @@ - database - zabbix +- name: ensure rows are counted regularily and saved in comment + cron: + name: "count rows" + special_time: monthly + job: psql zabbix -c "select * from zbx_update_partition_table_comments();" + state: present + user: postgres + delegate_to: "{{ zabbix_db_host }}" + tags: + - database + - zabbix + - name: upload the partition cleanup script copy: src: partition-cleanup.py