chore: fix ansible-lint violations and add pre-commit hooks
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
---
|
||||
- name: Start OpenVPN
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ openvpn_service }}"
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Wait for tap0
|
||||
command: ip link show tap0
|
||||
ansible.builtin.command: ip link show tap0
|
||||
register: tap_check
|
||||
retries: 10
|
||||
delay: 2
|
||||
until: tap_check.rc == 0
|
||||
changed_when: false
|
||||
|
||||
- name: Bring tap0 up
|
||||
command: ip link set tap0 up
|
||||
ansible.builtin.command: ip link set tap0 up
|
||||
changed_when: false
|
||||
|
||||
- name: Attach tap0 to bridge
|
||||
command: ip link set tap0 master br-main-vpn
|
||||
ansible.builtin.command: ip link set tap0 master br-main-vpn
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user