aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/install_license.yml
diff options
context:
space:
mode:
authorStefan Joosten <stefan@sjoosten.nl>2016-08-26 00:31:49 +0200
committerStefan Joosten <stefan@sjoosten.nl>2016-08-26 00:31:49 +0200
commit9f7b61ea916c73b556d19b5c1d982ea9e5fb007f (patch)
tree84c0ad246251245224e63de848742625d878f481 /tasks/install_license.yml
parentbe6b41e5c246d4c249c3d068b543a0f97326f3ac (diff)
parent7ef374edd6f40c1d8a754fdd58dba22efb707932 (diff)
downloadansible-teamspeak-9f7b61ea916c73b556d19b5c1d982ea9e5fb007f.tar.gz
ansible-teamspeak-9f7b61ea916c73b556d19b5c1d982ea9e5fb007f.tar.xz
ansible-teamspeak-9f7b61ea916c73b556d19b5c1d982ea9e5fb007f.zip
Merge branch 'issue3'
Add the functionality to include a TeamSpeak 3 Server license file. Close issue #3
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