Set the CAROOT env variable.
This commit is contained in:
parent
8593cee53f
commit
e762e1e8aa
|
@ -7,11 +7,13 @@
|
||||||
ansible_common_remote_group: ansible
|
ansible_common_remote_group: ansible
|
||||||
|
|
||||||
- name: Create the certificate (delegate to the CA vm)
|
- name: Create the certificate (delegate to the CA vm)
|
||||||
ansible.builtin.shell:
|
ansible.builtin.command:
|
||||||
cmd: su - mkcert-ca -s /bin/bash mkcert -cert-file {{ mkcert_cert_name }} -key-file {{ mkcert_key_name }} {{ mkcert_dsn_and_ip_list }}
|
cmd: /bin/bash mkcert -cert-file /srv/mkcert-ca/{{ mkcert_cert_name }} -key-file /srv/mkcert-ca/{{ mkcert_key_name }} {{ mkcert_dsn_and_ip_list }}
|
||||||
args:
|
args:
|
||||||
chdir: /srv/mkcert-ca
|
chdir: /srv/mkcert-ca
|
||||||
creates: "/srv/mkcert-ca/{{ mkcert_cert_name }}"
|
creates: "/srv/mkcert-ca/{{ mkcert_cert_name }}"
|
||||||
|
environment:
|
||||||
|
CAROOT: /srv/mkcert-ca/.local/share/mkcert
|
||||||
delegate_to: "{{ mkcert_ca_host }}"
|
delegate_to: "{{ mkcert_ca_host }}"
|
||||||
|
|
||||||
- name: Manage the certificate installation
|
- name: Manage the certificate installation
|
||||||
|
|
Loading…
Reference in New Issue