diff options
Diffstat (limited to 'tasks/main.yml')
| -rw-r--r-- | tasks/main.yml | 7 | 
1 files changed, 7 insertions, 0 deletions
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.  | 
