feat(ansible): add VPN node configuration automation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user