aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-02-20 02:38:41 +0100
committerTharre <tharre3@gmail.com>2018-02-20 03:37:00 +0100
commit8f84cd821701bbfe79c3ecd110d22a10214dd645 (patch)
tree4202aff9808be54140ab577f18b604f3edaec75e /templates
parent4e32e8d78d2d2bc38ed1c0135d8071fa6a9117f0 (diff)
downloadansible-teamspeak-8f84cd821701bbfe79c3ecd110d22a10214dd645.tar.gz
ansible-teamspeak-8f84cd821701bbfe79c3ecd110d22a10214dd645.tar.xz
ansible-teamspeak-8f84cd821701bbfe79c3ecd110d22a10214dd645.zip
Vastly simplify and refactor the tasks
This mainly includes the complete removal of all the logic involved with storing and deleting multiple versions of teamspeak, which is pointless. All the backup logic has been removed as well, because it is both easier and simpler to just rsync (or the ansible equivalent) the hole ts3 folder over to the target machine.
Diffstat (limited to 'templates')
-rw-r--r--templates/teamspeak3-server.service.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/teamspeak3-server.service.j2 b/templates/teamspeak3-server.service.j2
index 485084e..6f300c5 100644
--- a/templates/teamspeak3-server.service.j2
+++ b/templates/teamspeak3-server.service.j2
@@ -6,11 +6,11 @@ After=network.target
Type=simple
User={{ teamspeak.user }}
Group={{ teamspeak.user }}
-WorkingDirectory={{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64
+WorkingDirectory={{ teamspeak.home }}
{% if teamspeak_ini_enabled %}
-ExecStart={{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh inifile={{ teamspeak_ini_filename }}
+ExecStart={{ teamspeak.home }}/ts3server_minimal_runscript.sh inifile={{ teamspeak_ini_filename }}
{% else %}
-ExecStart={{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh
+ExecStart={{ teamspeak.home }}/ts3server_minimal_runscript.sh
{% endif %}
[Install]