From b331fee529dc21d54b3a495d6fa68029a3920648 Mon Sep 17 00:00:00 2001 From: Stefan Joosten Date: Thu, 25 Aug 2016 16:21:09 +0200 Subject: Add logic to install a TeamSpeak 3 Server License file to the target host. Fixes issue #3. --- tasks/install_license.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tasks/install_license.yml (limited to 'tasks/install_license.yml') diff --git a/tasks/install_license.yml b/tasks/install_license.yml new file mode 100644 index 0000000..b54b551 --- /dev/null +++ b/tasks/install_license.yml @@ -0,0 +1,18 @@ +--- +# License install tasks for role teamspeak + +- name: "License : Create directory for license" + file: + path: "{{ teamspeak_licensepath }}" + state: directory + when: teamspeak_licensepath is not none + +- name: "License : Copy the license file" + copy: + src: licensekey.dat + dest: "{{ teamspeak_licensepath if teamspeak_licensepath is not none else ts3server_dir }}/licensekey.dat" + owner: "{{ teamspeak.user }}" + group: "{{ teamspeak.user }}" + mode: 0400 + notify: + - Restart TeamSpeak 3 Server -- cgit v1.2.3-70-g09d2