feat(ansible): add VPN node configuration automation

This commit is contained in:
2026-06-10 12:36:27 +02:00
parent 89efd6430d
commit 5e6d4c1479
32 changed files with 526 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
---
- name: Deploy OpenVPN configuration
template:
src: server.conf.j2
dest: /etc/openvpn/server/server.conf
owner: root
group: root
mode: "0644"
notify: restart openvpn
- name: Deploy Radius configuration
template:
src: radiusplugin.cnf.j2
dest: /etc/openvpn/radiusplugin.cnf
owner: root
group: root
mode: "0600"
notify: restart openvpn
- name: Deploy client-connect script
copy:
src: client-connect.sh
dest: /etc/openvpn/scripts/client-connect.sh
owner: root
group: root
mode: "0755"
- name: Enable OpenVPN service
systemd:
name: openvpn@server
enabled: true