aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/handlers
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2022-01-11 00:49:33 +0000
committerGravatar Joe Banks <[email protected]>2022-01-11 13:29:08 +0000
commit338415762bb2117aea1e9ffb023ee982361009d4 (patch)
treebbdfb3f64d7bac8e55627dfd28e79e84fee8790d /roles/wireguard/handlers
parentAssign WireGuard subnets to each host (diff)
Add handler for reloading WireGuard when config is modified
Diffstat (limited to 'roles/wireguard/handlers')
-rw-r--r--roles/wireguard/handlers/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/wireguard/handlers/main.yml b/roles/wireguard/handlers/main.yml
new file mode 100644
index 0000000..0edcf3a
--- /dev/null
+++ b/roles/wireguard/handlers/main.yml
@@ -0,0 +1,4 @@
+- name: reload wg-quick
+ service:
+ name: wg-quick@wg0
+ state: reloaded