diff --git a/tasks/main.yml b/tasks/main.yml index 0bfb739..23c58fd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -114,18 +114,10 @@ notify: - reconfigure wireguard -- name: Check if reload-module-on-update is set - stat: - path: "{{ wireguard_remote_directory }}/.reload-module-on-update" - register: reload_module_on_update - tags: - - wg-config - -- name: Set WireGuard reload-module-on-update +- name: Ensure legacy reload-module-on-update is absent file: dest: "{{ wireguard_remote_directory }}/.reload-module-on-update" - state: touch - when: not reload_module_on_update.stat.exists + state: absent tags: - wg-config