Restart WireGuard on configuration update
This commit is contained in:
parent
e3a89aecc2
commit
96e7a0f8d2
@ -4,3 +4,9 @@
|
|||||||
connect_timeout: 5
|
connect_timeout: 5
|
||||||
listen: reboot_host
|
listen: reboot_host
|
||||||
when: allow_reboot
|
when: allow_reboot
|
||||||
|
|
||||||
|
- name: Restart WireGuard
|
||||||
|
service:
|
||||||
|
name: wg-quick@wg0
|
||||||
|
state: restarted
|
||||||
|
listen: restart_wireguard
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
template:
|
template:
|
||||||
src: wireguard.j2
|
src: wireguard.j2
|
||||||
dest: /etc/wireguard/wg0.conf
|
dest: /etc/wireguard/wg0.conf
|
||||||
|
notify:
|
||||||
|
- restart_wireguard
|
||||||
|
|
||||||
- name: Start WireGuard interface
|
- name: Start WireGuard interface
|
||||||
service:
|
service:
|
||||||
|
Loading…
Reference in New Issue
Block a user