feat: bye bye scootaloo

This commit is contained in:
VC
2024-07-05 11:53:44 +02:00
parent 82e374cf1b
commit a88434a3b4
6 changed files with 0 additions and 82 deletions

View File

@@ -11,12 +11,6 @@
when: inventory_hostname == 'web2.dmz.mateu.be'
# Scootaloo
- name: Scootaloo config for m.nintendojo.fr
ansible.builtin.include_tasks: scootaloo_config.yml
when: inventory_hostname == 'masto1.dmz.mateu.be'
- name: Scootaloo for Mastodon
ansible.builtin.include_tasks: scootaloo.yml
when: inventory_hostname in groups['rorservers']
- name: Tootctl (docker) for mastodon
ansible.builtin.include_tasks: tootctl_docker.yml
when: inventory_hostname in groups['dockerservers']

View File

@@ -1,38 +0,0 @@
---
- name: Install scootaloo
ansible.builtin.get_url:
url: "https://r.mateu.be/scootaloo/scootaloo.v{{ scootaloo_version }}"
dest: "{{ scootaloo_bin_path }}"
owner: root
group: www-data
mode: 0750
- name: Create scootaloo configuration dir
ansible.builtin.file:
path: "{{ scootaloo_db_path }}"
state: directory
owner: www-data
group: www-data
mode: 0750
- name: Init scootaloo db
ansible.builtin.command:
cmd: "{{ scootaloo_bin_path }} init"
creates: "{{ scootaloo_db_path }}/scootaloo.sqlite"
become: true
become_user: www-data
- name: Migrate scootaloo db
ansible.builtin.command:
cmd: "{{ scootaloo_bin_path }} migrate"
changed_when: false
become: true
become_user: www-data
- name: Cron for scootaloo
ansible.builtin.cron:
name: Scootaloo Dojo
user: www-data
minute: "*/{{ scootaloo_min_refresh_interval }}"
job: "{{ scootaloo_bin_path }} > /dev/null"

View File

@@ -1,9 +0,0 @@
---
- name: Put scootaloo configuration file
ansible.builtin.template:
src: scootaloo.toml.j2
dest: /usr/local/etc/scootaloo.toml
owner: root
group: www-data
mode: 0640