remove fcgiwrap + add scootaloo 0.5.0
This commit is contained in:
Binary file not shown.
@@ -1,9 +0,0 @@
|
||||
- name: install fcgiwrap
|
||||
package:
|
||||
name: fcgiwrap
|
||||
state: present
|
||||
|
||||
- name: start fcgiwrap
|
||||
service:
|
||||
name: fcgiwrap
|
||||
state: started
|
@@ -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'
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[scootaloo]
|
||||
|
||||
last_tweet_path="/usr/local/etc/last_tweet"
|
||||
last_tweet_path="/var/lib/scootaloo/scootaloo.sqlite"
|
||||
cache_path="/tmp/scootaloo"
|
||||
|
||||
[twitter]
|
||||
|
4
roles/webapps/vars/main.yml
Normal file
4
roles/webapps/vars/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
|
||||
scootaloo_bin_path: /usr/local/bin/scootaloo
|
||||
scootaloo_db_path: /var/lib/scootaloo
|
Reference in New Issue
Block a user