enable vpn interface
This commit is contained in:
parent
4346b49e62
commit
7cfe1091d5
2 changed files with 14 additions and 0 deletions
5
roles/vpn/handlers/main.yml
Normal file
5
roles/vpn/handlers/main.yml
Normal file
|
@ -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…
Reference in a new issue