From 8b1ae7d4c28f3bce41d43c2b46efa69b38aadbd9 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Sun, 13 Sep 2020 23:30:45 +0200 Subject: [PATCH] Remove obsolete .reload-module-on-update file It does not serve any function anymore after support for module reloading has been removed from the postinst script in 0.0.20200215-2 on 2020-02-24. A module update is properly signaled via /run/reboot-required so that the admin can (automatically) schedule a reboot when convenient. This will also be more in line with future Debian releases because starting with Debian bullseye, the kernel ships the module. --- tasks/main.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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