diff options
author | Stefan Joosten <stefan@sjoosten.nl> | 2016-08-23 20:34:32 +0200 |
---|---|---|
committer | Stefan Joosten <stefan@sjoosten.nl> | 2016-08-23 20:34:32 +0200 |
commit | cf50f8c7d35497509d592dd309906503c8d994e5 (patch) | |
tree | 1080a8fc28755db9c099e1dd8cdafb3e4c5f5b93 /tasks/config.yml | |
parent | 4088a3ec70d18f7174723609af79587cf65a0ed7 (diff) | |
download | ansible-teamspeak-cf50f8c7d35497509d592dd309906503c8d994e5.tar.gz ansible-teamspeak-cf50f8c7d35497509d592dd309906503c8d994e5.tar.xz ansible-teamspeak-cf50f8c7d35497509d592dd309906503c8d994e5.zip |
Fix issue #1.
Rewrote parts of Egbert Verhage's patches. Thank you again for the work.
This work adds the possibility to generate a INI-style configuration file for the TeamSpeak 3 Server.
The scope is limited to creating and use of the INI config file, and ability to configure network settings, the machine ID and default creation of the first virtual server.
More features can follow soon after.
Diffstat (limited to 'tasks/config.yml')
-rw-r--r-- | tasks/config.yml | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/tasks/config.yml b/tasks/config.yml index 11e57ff..3e9f003 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -1,23 +1,15 @@ --- -# Config files and actions for teamspeak3 server -- name: Short facts +# configuration tasks for teamspeak +- name: Set TeamSpeak 3 Server directory fact set_fact: ts3server_dir: "{{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64" -- name: Create ts3server.ini +- name: Create TeamSpeak 3 Server configuration file template: src: ts3server.ini.j2 - dest: "{{ ts3server_dir }}/ts3server.ini" + dest: "{{ ts3server_dir }}/{{ teamspeak_ini_filename }}" mode: 0644 owner: "{{ teamspeak.user }}" group: "{{ teamspeak.user }}" - register: ts3server_ini - -- name: Create teamspeak 3 server logs folder - file: - path: "{{ teamspeak_ini.logpath }}" - state: directory - mode: 0755 - owner: "{{ teamspeak.user }}" - group: "{{ teamspeak.user }}" - + notify: + - Restart TeamSpeak 3 Server |