feat: add systemd feature

This commit is contained in:
VC
2024-07-05 11:53:37 +02:00
parent fea2a117e9
commit aad2061cab
2 changed files with 46 additions and 0 deletions

View File

@@ -73,3 +73,16 @@
bash -lic "yarn install --production --pure-lockfile"
chdir: "{{ peertube_home }}/peertube-latest"
changed_when: true
- name: Install services
ansible.builtin.template:
src: peertube.service.j2
dest: /etc/systemd/system/peertube.service
mode: 0644
- name: Run services
ansible.builtin.systemd:
name: peertube.service
daemon_reload: true
state: restarted # restart everytime, this is simpler
enabled: true