diff options
| -rw-r--r-- | tasks/install.yml | 1 | ||||
| -rw-r--r-- | tasks/main.yml | 7 | 
2 files changed, 8 insertions, 0 deletions
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.  | 
