Mastodon: prune profile media monthly (#228)
Currently running this with --days 14 and am seeing gigabytes freed. Before freeing: Avatars: 29.6 GB (1.92 MB local) Headers: 66.2 GB (6.17 MB local) Reviewed-on: https://git.data.coop/data.coop/ansible/pulls/228 Co-authored-by: Reynir Björnsson <reynir@reynir.dk> Co-committed-by: Reynir Björnsson <reynir@reynir.dk>
This commit is contained in:
parent
86b2c1a716
commit
f1d795710d
1 changed files with 9 additions and 0 deletions
|
@ -9,6 +9,15 @@
|
|||
user: root
|
||||
state: present
|
||||
|
||||
- name: Configure cron job to remove old Mastodon profile media such as avatars and headers
|
||||
cron:
|
||||
name: Clean Mastodon profile media older than thirty days
|
||||
cron_file: ansible_mastodon_clean_media_profile
|
||||
job: docker exec mastodon-web-1 tootctl media remove --profile --days 30
|
||||
special_time: daily
|
||||
user: root
|
||||
state: present
|
||||
|
||||
- name: Configure cron job to remove old Mastodon preview cards daily
|
||||
cron:
|
||||
name: Clean Mastodon preview card data older than two weeks
|
||||
|
|
Loading…
Add table
Reference in a new issue