32 lines
636 B
YAML
32 lines
636 B
YAML
- name: install scootaloo
|
|
copy:
|
|
src: files/bin/scootaloo
|
|
dest: "/usr/local/bin/scootaloo"
|
|
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
|
|
dest: /usr/local/etc/scootaloo.toml
|
|
owner: root
|
|
group: www-data
|
|
mode: 0640
|
|
|
|
- name: cron for scootaloo
|
|
cron:
|
|
name: Scootaloo Dojo
|
|
user: www-data
|
|
minute: "*/5"
|
|
job: "/usr/local/bin/scootaloo > /dev/null"
|
|
|