Fix logrotate configuration
This commit is contained in:
parent
1e3ac40167
commit
61e007d22b
2 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
|||
/var/log/postgresql/*.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 10
|
||||
create 640 postgres adm
|
||||
copytruncate
|
||||
nodelaycompress
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
su root root
|
||||
}
|
||||
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
- name: logrotate configuration
|
||||
copy:
|
||||
src: logrotate_postgresql
|
||||
dest: /etc/logrotate.d/postgresql
|
||||
dest: /etc/logrotate.d/postgresql-common
|
||||
force: no
|
||||
|
|
Loading…
Reference in a new issue