feat: add systemd feature
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user