add reload and startup management to interface

This commit is contained in:
nd 2022-12-10 19:12:05 +01:00
parent 8e3a6b943e
commit 412c3b2eec
2 changed files with 16 additions and 0 deletions

14
handlers/main.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: start wireguard interface
command:
argv:
- ifup
- 'wg_{{ item.name }}'
- name: reload wireguard interface
command:
argv:
- wg
- syncconf
- 'wg_{{ item.name }}'
- '/etc/wireguard/wg_{{ item.name }}.conf'