photos: More Ansible config for the gallery service
This commit is contained in:
parent
d1f171abf0
commit
893c8133f5
7 changed files with 33 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
- tags: photos_gallery
|
||||
- tags: photos-gallery
|
||||
import_tasks: photo-gallery.yaml
|
||||
|
||||
- tags: photos_mqtt
|
||||
- tags: photos-mqtt
|
||||
import_tasks: photos2mqtt.yaml
|
||||
|
||||
- tags: bambulab-fetch
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name: [ nodejs, npm, imagemagick, graphicsmagick ]
|
||||
|
||||
- name: Clone source
|
||||
git:
|
||||
repo: https://github.com/bitlair/photo-gallery.git
|
||||
|
@ -7,6 +11,15 @@
|
|||
accept_hostkey: yes
|
||||
notify: restart photo-gallery
|
||||
|
||||
- name: Install photo-gallery config file
|
||||
template:
|
||||
src: photo-gallery-config.json
|
||||
dest: /opt/photo-gallery/config.json
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart photo-gallery
|
||||
|
||||
- name: Install photo-gallery service file
|
||||
template:
|
||||
src: photo-gallery.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue