19 lines
365 B
YAML
19 lines
365 B
YAML
---
|
|
- name: Start OpenVPN
|
|
systemd:
|
|
name: "{{ openvpn_service }}"
|
|
state: started
|
|
enabled: true
|
|
|
|
- name: Wait for tap0
|
|
command: ip link show tap0
|
|
register: tap_check
|
|
retries: 10
|
|
delay: 2
|
|
until: tap_check.rc == 0
|
|
|
|
- name: Bring tap0 up
|
|
command: ip link set tap0 up
|
|
|
|
- name: Attach tap0 to bridge
|
|
command: ip link set tap0 master br-main-vpn |