aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/install_license.yml
blob: b54b55159c3a431b6a04eb38455b824d7b0ee8e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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