♻: move mastodon cron to mastodon role
This commit is contained in:
9
roles/mastodon/tasks/cron.yml
Normal file
9
roles/mastodon/tasks/cron.yml
Normal 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"
|
@@ -62,3 +62,6 @@
|
||||
|
||||
- name: Install mastodon
|
||||
ansible.builtin.include_tasks: mastodon.yml
|
||||
|
||||
- name: Install tootctl cron
|
||||
ansible.builtin.include_tasks: cron.yml
|
||||
|
@@ -9,3 +9,5 @@ mastodon_yarn_key_url: "https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
mastodon_yarn_key_path: "/usr/share/keyrings/yarnkey.gpg"
|
||||
|
||||
mastodon_ruby_version: "3.3.5"
|
||||
|
||||
mastodon_home: "/srv/mastodon"
|
||||
|
Reference in New Issue
Block a user