40 lines
793 B
YAML
40 lines
793 B
YAML
---
|
|
|
|
- name: install scootaloo
|
|
copy:
|
|
src: files/bin/scootaloo
|
|
dest: "{{ scootaloo_bin_path }}"
|
|
owner: root
|
|
group: www-data
|
|
mode: 0750
|
|
|
|
- name: put configuration file
|
|
template:
|
|
src: scootaloo.toml.j2
|
|
dest: /usr/local/etc/scootaloo.toml
|
|
owner: root
|
|
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"
|
|
become: true
|
|
become_user: www-data
|
|
|
|
- name: cron for scootaloo
|
|
cron:
|
|
name: Scootaloo Dojo
|
|
user: www-data
|
|
minute: "*/5"
|
|
job: "{{ scootaloo_bin_path }} > /dev/null"
|