feat: bye bye scootaloo
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
scootaloo_min_refresh_interval: 10
|
|
@@ -11,12 +11,6 @@
|
|||||||
when: inventory_hostname == 'web2.dmz.mateu.be'
|
when: inventory_hostname == 'web2.dmz.mateu.be'
|
||||||
|
|
||||||
# Scootaloo
|
# 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
|
- name: Tootctl (docker) for mastodon
|
||||||
ansible.builtin.include_tasks: tootctl_docker.yml
|
ansible.builtin.include_tasks: tootctl_docker.yml
|
||||||
when: inventory_hostname in groups['dockerservers']
|
when: inventory_hostname in groups['dockerservers']
|
||||||
|
@@ -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"
|
|
@@ -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
|
|
@@ -1,21 +0,0 @@
|
|||||||
[scootaloo]
|
|
||||||
|
|
||||||
db_path = "{{ scootaloo_db_path }}/scootaloo.sqlite"
|
|
||||||
cache_path = "/tmp/scootaloo"
|
|
||||||
rate_limiting = 4
|
|
||||||
|
|
||||||
[twitter]
|
|
||||||
|
|
||||||
consumer_key = "{{ scootaloo_twitter_consumer_key }}"
|
|
||||||
consumer_secret = "{{ scootaloo_twitter_consumer_secret }}"
|
|
||||||
access_key = "{{ scootaloo_twitter_access_key }}"
|
|
||||||
access_secret = "{{ scootaloo_twitter_access_secret }}"
|
|
||||||
|
|
||||||
[mastodon]
|
|
||||||
[mastodon.nintendojofr]
|
|
||||||
twitter_screen_name = "NintendojoFR"
|
|
||||||
base = "https://m.nintendojo.fr"
|
|
||||||
client_id = "{{ scootaloo_mastodon_client_id }}"
|
|
||||||
client_secret = "{{ scootaloo_mastodon_client_secret }}"
|
|
||||||
redirect = "urn:ietf:wg:oauth:2.0:oob"
|
|
||||||
token = "{{ scootaloo_mastodon_token }}"
|
|
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
scootaloo_bin_path: /usr/local/bin/scootaloo
|
|
||||||
scootaloo_db_path: /var/lib/scootaloo
|
|
||||||
scootaloo_version: "1.1.6"
|
|
Reference in New Issue
Block a user