feat: add mastodon support directly
This commit is contained in:
@@ -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']
|
||||
|
19
roles/webapps/tasks/tootctl_nodocker.yml
Normal file
19
roles/webapps/tasks/tootctl_nodocker.yml
Normal 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"
|
Reference in New Issue
Block a user