feat: add mastodon support directly

This commit is contained in:
VC
2024-07-05 11:53:29 +02:00
parent a8868f7f07
commit e77ff577c1
17 changed files with 427 additions and 12 deletions

View File

@@ -9,12 +9,17 @@
- name: WP for NintendojoFR
include_tasks: wp_dojo.yml
when: inventory_hostname == 'web2.dmz.mateu.be'
# Scootaloo
- name: Scootaloo config for m.nintendojo.fr
include_tasks: scootaloo_config.yml
when: inventory_hostname == 'masto1.dmz.mateu.be'
- name: Scootaloo for Mastodon
include_tasks: scootaloo.yml
when: inventory_hostname in groups['rorservers']
- name: Scootaloo config for m.nintendojo.fr
include_tasks: scootaloo_config.yml
when: inventory_hostname == 'ror1.dmz.mateu.be'
- name: tootctl for mastodon
include_tasks: tootctl.yml
when: inventory_hostname in groups['rorservers']
- name: tootctl (docker) for mastodon
include_tasks: tootctl_docker.yml
when: inventory_hostname in groups['dockerservers']
- name: tootctl (no docker) for mastodon
include_tasks: tootctl_nodocker.yml
when: inventory_hostname in groups['mastodonservers']

View File

@@ -0,0 +1,19 @@
---
- name: cron for media tootctl
cron:
user: mastodon
name: Mastodon tootctl
minute: "0"
hour: "19"
weekday: "5"
job: "cd live && bin/tootctl media remove"
- name: cron for preview_cards tootctl
cron:
user: mastodon
name: Mastodon tootctl preview
minute: "30"
hour: "19"
weekday: "5"
job: "cd live && bin/tootctl preview_cards remove"