Add the photos role
This commit is contained in:
parent
24c4d845ae
commit
786bb5cbdc
10 changed files with 169 additions and 0 deletions
24
roles/photos/tasks/photo-gallery.yaml
Normal file
24
roles/photos/tasks/photo-gallery.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- name: Clone source
|
||||
git:
|
||||
repo: https://github.com/bitlair/photo-gallery.git
|
||||
version: master
|
||||
dest: /opt/photo-gallery
|
||||
accept_hostkey: yes
|
||||
notify: restart photo-gallery
|
||||
|
||||
- name: Install photo-gallery service file
|
||||
template:
|
||||
src: photo-gallery.service
|
||||
dest: /etc/systemd/system/photo-gallery.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart photo-gallery
|
||||
|
||||
- name: Start photo-gallery
|
||||
systemd:
|
||||
name: photo-gallery
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: true
|
Loading…
Add table
Add a link
Reference in a new issue