From 267dab5f0231d1ba941dfee5f50e26a1bbcff2bf Mon Sep 17 00:00:00 2001 From: Stefan Joosten Date: Tue, 23 Aug 2016 21:04:37 +0200 Subject: Clean up an old INI configuration after turning teamspeak_ini_enabled off again. --- tasks/install.yml | 1 + tasks/main.yml | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'tasks') diff --git a/tasks/install.yml b/tasks/install.yml index 98d7253..1dcebb2 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -66,4 +66,5 @@ group: root notify: - Reload systemd + - Restart TeamSpeak 3 Server diff --git a/tasks/main.yml b/tasks/main.yml index 1b171df..0eaa630 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,6 +19,13 @@ - include: config.yml when: teamspeak_ini_enabled +# Clean-up a lingering configuration file if we don't need it anymore +- name: Clean-up configuration + file: + path: "{{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/{{ teamspeak_ini_filename }}" + state: absent + when: not teamspeak_ini_enabled + # Perform the running of handlers now # So we can do "Reload systemd" (and possibly queued clean-up) # before we start using the new/changed .service file. -- cgit v1.2.3-70-g09d2