31 lines
702 B
YAML
31 lines
702 B
YAML
# Configure botany
|
|
# must manually initalize sqlite database by running botany as root once
|
|
---
|
|
- name: Clone botany repository
|
|
git:
|
|
repo: 'https://github.com/jifunks/botany.git'
|
|
dest: /var/lib/botany
|
|
force: yes
|
|
|
|
- name: Install botany executable
|
|
file:
|
|
src: /var/lib/botany/botany.py
|
|
dest: /usr/local/bin/botany
|
|
mode: 0755
|
|
state: link
|
|
|
|
- name: Initalizes shared data folder group and mode
|
|
file:
|
|
path: /var/lib/botany/sqlite
|
|
state: directory
|
|
owner: root
|
|
group: tilde
|
|
mode: 0775
|
|
|
|
- name: Keep weekly visitors tidy
|
|
file:
|
|
src: /var/lib/botany/clear_weekly_users.py
|
|
dest: /etc/cron.weekly/clear_weekly_users.py
|
|
mode: 0755
|
|
state: link
|