add cronjob to vacuum dbs
This commit is contained in:
parent
65c4b48071
commit
b8d95efb9c
1 changed files with 8 additions and 0 deletions
|
|
@ -31,5 +31,13 @@
|
|||
become: true
|
||||
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
|
||||
meta: flush_handlers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue