Add packages, simplify systemd unit

This commit is contained in:
Salt 2020-08-23 23:38:01 -05:00
parent 5c32a14c19
commit 968255ab76
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,10 @@
block: block:
- name: Set up system - name: Set up system
block: block:
- name: Install required packages
apt:
name:
- libluajit-5.1-2
- name: Create user - name: Create user
user: user:
name: tes3mp name: tes3mp

View File

@ -21,7 +21,7 @@ ProtectKernelModules=true
# Implies MountAPIVFS=yes # Implies MountAPIVFS=yes
ProtectControlGroups=true ProtectControlGroups=true
ExecStart=/bin/sh -c '/usr/bin/screen -DmS %i {{ tes3mp.dest }}/{{ tes3mp.name }}/tes3mp-server' ExecStart=/bin/sh -c '{{ tes3mp.dest }}/{{ tes3mp.name }}/tes3mp-server'
Restart=on-failure Restart=on-failure