chore: fix ansible-lint violations and add pre-commit hooks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Create certificate directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ openvpn_cert_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
@@ -8,7 +8,7 @@
|
||||
mode: "0755"
|
||||
|
||||
- name: Deploy CA certificate
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: certs/ca.crt
|
||||
dest: "{{ openvpn_cert_dir }}/ca.crt"
|
||||
owner: root
|
||||
@@ -16,7 +16,7 @@
|
||||
mode: "0644"
|
||||
|
||||
- name: Deploy server certificate
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: certs/server.crt
|
||||
dest: "{{ openvpn_cert_dir }}/server.crt"
|
||||
owner: root
|
||||
@@ -24,9 +24,9 @@
|
||||
mode: "0644"
|
||||
|
||||
- name: Deploy server private key
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: certs/server.key
|
||||
dest: "{{ openvpn_cert_dir }}/server.key"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
mode: "0600"
|
||||
|
||||
Reference in New Issue
Block a user