ansible/roles/acme/templates/acme.sh.request.j2

23 lines
554 B
Django/Jinja

NSUPDATE_KEY="{{ acme_nsupdate_key }}"
NSUPDATE_SERVER="{{ acme_nsupdate_server }}"
"{{ acme_home }}/acme.sh"
--home "{{ acme_home }}"
--log
--issue
-k 4096
-d "{{ inventory_hostname }}"
--dns dns_nsupdate
{% if acme_san_domains is defined %}
{% for domain in acme_san_domains %}
-d "{{ domain }}"
{% endfor %}
{% endif %}
{% if acme_staging is defined and acme_staging %}
--staging
{% endif %}
--cert-file "{{ acme_cert }}"
--key-file "{{ acme_key }}"
--ca-file "{{ acme_ca }}"
--fullchain-file "{{ acme_fullchain }}"
--reloadcmd "{{ acme_reloadcmd }}"