add cronjob to vacuum dbs

This commit is contained in:
nd 2018-11-13 08:04:08 +01:00
parent 65c4b48071
commit b8d95efb9c
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -31,5 +31,13 @@
become: true become: true
with_dict: "{{ postgresql.users }}" with_dict: "{{ postgresql.users }}"
- name: add vacuum cronjob
cron:
name: db maintenance
job: "/usr/bin/vacuumdb --all --analyze > /dev/null"
user: postgres
hour: 23
minute: 26
- name: flush handlers so postgres is ready before other roles try to use it - name: flush handlers so postgres is ready before other roles try to use it
meta: flush_handlers meta: flush_handlers