Fix logrotate configuration

This commit is contained in:
Eric Morino 2020-03-09 14:40:10 +01:00
parent 1e3ac40167
commit 61e007d22b
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,11 @@
/var/log/postgresql/*.log {
daily
missingok
rotate 10
create 640 postgres adm
copytruncate
nodelaycompress
compress
notifempty
missingok
su root root
}

View file

@ -2,5 +2,5 @@
- name: logrotate configuration
copy:
src: logrotate_postgresql
dest: /etc/logrotate.d/postgresql
dest: /etc/logrotate.d/postgresql-common
force: no