remove fcgiwrap + add scootaloo 0.5.0

This commit is contained in:
VC
2024-07-05 11:53:10 +02:00
parent 4eeba2178a
commit 2484b4d5ec
6 changed files with 20 additions and 23 deletions

View File

@@ -1,9 +0,0 @@
- name: install fcgiwrap
package:
name: fcgiwrap
state: present
- name: start fcgiwrap
service:
name: fcgiwrap
state: started

View File

@@ -19,6 +19,3 @@
- name: tootctl for mastodon
include_tasks: tootctl.yml
when: inventory_hostname == 'ror.dmz.mateu.be'
- name: fcgiwrap for mailman
include_tasks: fcgiwrap.yml
when: inventory_hostname == 'mail.dmz.mateu.be'

View File

@@ -1,19 +1,11 @@
- name: install scootaloo
copy:
src: files/bin/scootaloo
dest: "/usr/local/bin/scootaloo"
dest: "{{ scootaloo_bin_path }}"
owner: root
group: www-data
mode: 0750
- name: create last tweet file
file:
path: /usr/local/etc/last_tweet
state: touch
owner: www-data
group: www-data
mode: 0750
- name: put configuration file
template:
src: scootaloo.toml.j2
@@ -22,10 +14,23 @@
group: www-data
mode: 0640
- name: create scootaloo config dir
file:
path: "{{ scootaloo_db_path }}"
state: directory
owner: www-data
group: www-data
mode: 0750
- name: init scootaloo db
shell:
cmd: "{{ scootaloo_bin_path }} init"
creates: "{{ scootaloo_db_path }}/scootaloo.sqlite"
- name: cron for scootaloo
cron:
name: Scootaloo Dojo
user: www-data
minute: "*/5"
job: "/usr/local/bin/scootaloo > /dev/null"
job: "{{ scootaloo_bin_path }} > /dev/null"