chore: fix ansible-lint violations and add pre-commit hooks

This commit is contained in:
2026-06-15 15:43:22 +02:00
parent 5e6d4c1479
commit 499c8bbde5
32 changed files with 102 additions and 64 deletions
+7 -4
View File
@@ -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