enable vpn interface

networking
Jean-Marie Mineau 3 years ago
parent 4346b49e62
commit 7cfe1091d5

@ -0,0 +1,5 @@
---
- name: Reload wireguard for interface
systemd:
name: "wg-quick@{{ item.key }}"
state: reloaded

@ -24,3 +24,12 @@
mode: '600'
loop:
- "{{ lookup('dict', vpn_interfaces) }}"
notify: Reload wireguard for interface
- name: Enable interface
systemd:
name: "wg-quick@{{ item.key }}"
state: started
enabled: yes
loop:
- "{{ lookup('dict', vpn_interfaces) }}"

Loading…
Cancel
Save