Add a variable to set the mkcert path.

This commit is contained in:
Andrea Dell'Amico 2023-07-13 13:00:10 +02:00
parent beccc371b7
commit 5250c17d18
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 4 additions and 2 deletions

View File

@ -177,7 +177,9 @@ self_signed_subject: "/CN={{ ansible_fqdn }} self signed"
mkcert_create_certificate: false
mkcert_cert_name: "{{ ansible_fqdn}}.pem"
mkcert_cert_dest_path: "{{ pki_dir }}/certs/{{ mkcert_cert_name }}"
mkcert_key_name: "{{ ansible_fqdn}}-key.pem"
mkcert_key_dest_path: "{{ pki_dir }}/keys/{{ mkcert_key_name }}"
mkcert_dsn_and_ip_list: "{{ ansible_fqdn }} {{ ansible_default_ipv4.address }}"
mkcert_ca_host: localhost

View File

@ -32,7 +32,7 @@
- name: Copy the certificate to the destination server
ansible.builtin.copy:
src: "files/{{ mkcert_cert_name }}"
dest: "{{ pki_dir }}/certs/{{ mkcert_cert_name }}"
dest: "{{ mkcert_cert_dest_path }}"
owner: root
group: root
mode: 0444
@ -40,7 +40,7 @@
- name: Copy the certificate to the destination server
ansible.builtin.copy:
src: "files/{{ mkcert_key_name }}"
dest: "{{ pki_dir }}/keys/{{ mkcert_key_name }}"
dest: "{{ mkcert_key_dest_path }}"
owner: root
group: root
mode: 0440