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
+4
View File
@@ -0,0 +1,4 @@
---
# defaults file for roles/networking
radius_auth_nodeport: 30131
radius_acct_nodeport: 31622
+28
View File
@@ -0,0 +1,28 @@
---
- name: Install iptables persistence
ansible.builtin.apt:
name:
- iptables-persistent
state: present
- name: DNAT RADIUS auth traffic
ansible.builtin.iptables:
table: nat
chain: OUTPUT
protocol: udp
destination_port: "1812"
jump: DNAT
to_destination: ":{{ radius_auth_nodeport }}"
- name: DNAT RADIUS accounting traffic
ansible.builtin.iptables:
table: nat
chain: OUTPUT
protocol: udp
destination_port: "1813"
jump: DNAT
to_destination: ":{{ radius_acct_nodeport }}"
- name: Save iptables rules
ansible.builtin.command: netfilter-persistent save
changed_when: false