diff --git a/tasks/main.yml b/tasks/main.yml index 0b4a0cf..d528829 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -102,7 +102,7 @@ - restart wireguard - name: Check if reload-module-on-update is set - stat: + stat: path: "{{ wireguard_remote_directory }}/.reload-module-on-update" register: reload_module_on_update tags: @@ -115,7 +115,7 @@ when: not reload_module_on_update.stat.exists tags: - wg-config - + - name: Start and enable WireGuard service service: name: "wg-quick@{{ wireguard_interface }}"