Add the photos role

This commit is contained in:
polyfloyd 2023-09-10 17:48:21 +02:00
parent 24c4d845ae
commit 786bb5cbdc
10 changed files with 169 additions and 0 deletions

View 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