Browse Source

Fix logrotate configuration

tags/10.0.0^2
Eric Morino 8 months ago
parent
commit
61e007d22b
2 changed files with 7 additions and 3 deletions
  1. +6
    -2
      postgresql/files/logrotate_postgresql
  2. +1
    -1
      postgresql/tasks/logrotate.yml

+ 6
- 2
postgresql/files/logrotate_postgresql 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
}


+ 1
- 1
postgresql/tasks/logrotate.yml 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

Loading…
Cancel
Save