feat: Manage EasyRSA CA and certificates

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2024-05-13 18:14:16 +02:00
parent f3930ea7d4
commit 19a7af377e
No known key found for this signature in database
GPG key ID: A2EB1F2CA8E3F677
6 changed files with 100 additions and 8 deletions

View file

@ -0,0 +1,9 @@
---
- name: Delete EasyRSA certificates
ansible.builtin.file:
name: "{{ item }}"
state: absent
loop:
- "{{ easyrsa_ca_dir }}/pki/reqs/{{ client_name }}.req"
- "{{ easyrsa_ca_dir }}/pki/private/{{ client_name }}.key"
- "{{ easyrsa_ca_dir }}/pki/issued/{{ client_name }}.crt"