photos: Add bambulab timelapse fetcher
This commit is contained in:
parent
fedc15a1d7
commit
7911bc0d7d
5 changed files with 84 additions and 0 deletions
37
roles/photos/tasks/bambulab-fetch.yaml
Normal file
37
roles/photos/tasks/bambulab-fetch.yaml
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name: curl
|
||||
|
||||
- name: Install fetch script
|
||||
template:
|
||||
src: bambulab-fetch.sh
|
||||
dest: /opt/bambulab-fetch.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Install service
|
||||
template:
|
||||
src: bambulab-fetch.service
|
||||
dest: /etc/systemd/system/bambulab-fetch.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: daemon reload
|
||||
|
||||
- name: Install timer
|
||||
template:
|
||||
src: bambulab-fetch.timer
|
||||
dest: /etc/systemd/system/bambulab-fetch.timer
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: daemon reload
|
||||
|
||||
- name: Enable timer
|
||||
systemd:
|
||||
name: bambulab-fetch
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: true
|
|
@ -4,3 +4,6 @@
|
|||
|
||||
- tags: photos_mqtt
|
||||
import_tasks: photos2mqtt.yaml
|
||||
|
||||
- tags: bambulab-fetch
|
||||
import_tasks: bambulab-fetch.yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue