Skip to content

Commit

Permalink
nextcloud: Ensure logrotate is configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Aug 26, 2024
1 parent 3170b1a commit 81a5623
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/nextcloud/files/logrotate.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/var/cache/nextcloud/.updater/*.log
/var/cache/nextcloud/*.log
/var/lib/nextcloud/data/*.log
{
daily
rotate 1
missingok
notifempty
compress
}
5 changes: 5 additions & 0 deletions roles/nextcloud/tasks/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@
with_items:
- eval $(/var/www/nextcloud/occ _completion --generate-hook --program occ)
- alias occ=/var/www/nextcloud/occ

- name: Ensure Nextcloud logrotate is configured
ansible.builtin.copy:
src: logrotate.conf
dest: /etc/logrotate.d/nextcloud.conf

0 comments on commit 81a5623

Please sign in to comment.