Copy pgbackrest logrotate config as well

This commit is contained in:
staticsafe 2019-10-20 21:53:09 -04:00
parent fbb5391eae
commit 05283b00ef
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,9 @@
/var/log/pgbackrest/*.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 640 postgres postgres
}

View File

@ -32,3 +32,8 @@
owner: postgres
group: postgres
mode: '0640'
- name: Copy pgbackrest logrotate configuration
copy:
src: pgbackrest
dest: /etc/logrotate.d/pgbackrest