chore: fix ansible-lint violations and add pre-commit hooks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Deploy OpenVPN configuration
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: server.conf.j2
|
||||
dest: /etc/openvpn/server/server.conf
|
||||
owner: root
|
||||
@@ -9,7 +9,7 @@
|
||||
notify: restart openvpn
|
||||
|
||||
- name: Deploy Radius configuration
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: radiusplugin.cnf.j2
|
||||
dest: /etc/openvpn/radiusplugin.cnf
|
||||
owner: root
|
||||
@@ -18,7 +18,7 @@
|
||||
notify: restart openvpn
|
||||
|
||||
- name: Deploy client-connect script
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: client-connect.sh
|
||||
dest: /etc/openvpn/scripts/client-connect.sh
|
||||
owner: root
|
||||
@@ -26,6 +26,6 @@
|
||||
mode: "0755"
|
||||
|
||||
- name: Enable OpenVPN service
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: openvpn@server
|
||||
enabled: true
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user