forked from data.coop/ansible
20 lines
647 B
YAML
20 lines
647 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Configure cron job to remove old Mastodon media daily
|
|
cron:
|
|
name: Clean Mastodon media data older than a week
|
|
cron_file: ansible_mastodon_clean_media
|
|
job: docker exec mastodon_web_1 tootctl media remove --days 7
|
|
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
|
|
cron_file: ansible_mastodon_clean_preview_cards
|
|
job: docker exec mastodon_web_1 tootctl preview_cards remove --days 14
|
|
special_time: daily
|
|
user: root
|
|
state: present
|