Convert the mkcert command into a shell one.
This commit is contained in:
parent
436acc9bab
commit
8593cee53f
|
@ -7,12 +7,8 @@
|
||||||
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)
|
||||||
become: true
|
ansible.builtin.shell:
|
||||||
become_user: mkcert-ca
|
cmd: su - mkcert-ca -s /bin/bash mkcert -cert-file {{ mkcert_cert_name }} -key-file {{ mkcert_key_name }} {{ mkcert_dsn_and_ip_list }}
|
||||||
become_method: su
|
|
||||||
become_flags: '-s /bin/bash'
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: mkcert -cert-file {{ mkcert_cert_name }} -key-file {{ 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 }}"
|
||||||
|
|
Loading…
Reference in New Issue