aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/install_license.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/install_license.yml')
-rw-r--r--tasks/install_license.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tasks/install_license.yml b/tasks/install_license.yml
new file mode 100644
index 0000000..25c9365
--- /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: "{{ teamspeak_license_srcfile }}"
+ 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