From 8f84cd821701bbfe79c3ecd110d22a10214dd645 Mon Sep 17 00:00:00 2001 From: Tharre Date: Tue, 20 Feb 2018 02:38:41 +0100 Subject: Vastly simplify and refactor the tasks This mainly includes the complete removal of all the logic involved with storing and deleting multiple versions of teamspeak, which is pointless. All the backup logic has been removed as well, because it is both easier and simpler to just rsync (or the ansible equivalent) the hole ts3 folder over to the target machine. --- tasks/display.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 tasks/display.yml (limited to 'tasks/display.yml') diff --git a/tasks/display.yml b/tasks/display.yml deleted file mode 100644 index 9c153e2..0000000 --- a/tasks/display.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -# configuration tasks for teamspeak - -# This task prints information a TeamSpeak 3 server admin needs to log in to -# the newly installed TeamSpeak 3 Server. - -- name: "Display : Wait until TeamSpeak 3 ServerQuery is open" - wait_for: - port: "{{ teamspeak_network.query.port }}" - timeout: 30 - -- name: "Display : Fetch the password of the Server Query Admin Account" - shell: journalctl --unit teamspeak3-server.service --reverse | awk -F'"' '/password=/ { print $4; exit }' - register: __ts3_serveradmin_password - changed_when: False - -- name: "Display : Show the Server Query Admin Account password" - debug: - msg: "serveradmin password: {{ __ts3_serveradmin_password.stdout }}" - -- block: - - name: "Display : Fetch the ServerAdmin privilege key (token)" - shell: journalctl --unit teamspeak3-server.service --reverse | awk -F'=' '/token=/ { print $2 ; exit }' - register: __ts3_default_priv_token - changed_when: False - - name: "Display : Show the ServerAdmin privilege key" - debug: - msg: "token: {{ __ts3_default_priv_token.stdout }}" - when: teamspeak_create_default_virtualserver -- cgit v1.2.3-70-g09d2