ansible/roles/vpn/handlers/main.yml

8 lines
180 B
YAML

---
- name: Restart wireguard for interface
systemd:
name: "wg-quick@{{ item.key }}"
state: restarted
loop:
- "{{ lookup('dict', vpn_interfaces) }}"
no_log: true