2025-12-23 19:17:16 +08:00

13 lines
242 B
YAML

---
- name: Regenerate Wireguard Config
template:
src: wg.conf
dest: /etc/wireguard/wg0.conf
owner: root
group: root
mode: 0600
- name: Reload Wireguard with systemd
systemd:
name: wg-quick@wg0
state: reloaded