Add a variable to set the mkcert path.
This commit is contained in:
parent
beccc371b7
commit
5250c17d18
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue