♻: move mastodon cron to mastodon role

This commit is contained in:
VC
2025-02-14 20:45:58 +01:00
parent 88a1b9d738
commit 3a65cfe2a8
5 changed files with 5 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
---
- name: Cron for media tootctl
ansible.builtin.cron:
user: mastodon
name: Mastodon tootctl
minute: "0"
hour: "2"
job: "{{ mastodon_home }}/bin/remove_media.sh"

View File

@@ -62,3 +62,6 @@
- name: Install mastodon
ansible.builtin.include_tasks: mastodon.yml
- name: Install tootctl cron
ansible.builtin.include_tasks: cron.yml