1
0
Fork 0
home-stack-ansible/roles/haproxy/templates/certbot-run.sh

19 lines
649 B
Bash

#!/bin/sh
certbot certonly \
--non-interactive \
--agree-tos \
--email {{ letsencrypt.email }} \
--deploy-hook '/opt/certbot/certbot-deploy.sh' \
{% if letsencrypt.digitalocean is defined %}
--dns-digitalocean \
--dns-digitalocean-credentials /opt/certbot/certbot-creds.ini \
--dns-digitalocean-propagation-seconds 60 \
{% endif %}
{% if letsencrypt.cloudflare is defined %}
--dns-cloudflare \
--dns-cloudflare-credentials /opt/certbot/certbot-creds.ini \
--dns-cloudflare-propagation-seconds 60 \
{% endif %}
{% for domain in letsencrypt.domains %}-d '{{ domain }}' {% endfor %} \
$@