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

19 lines
649 B
Bash
Raw Permalink Normal View History

2021-08-25 04:33:56 +00:00
#!/bin/sh
certbot certonly \
--non-interactive \
--agree-tos \
--email {{ letsencrypt.email }} \
--deploy-hook '/opt/certbot/certbot-deploy.sh' \
2024-04-05 23:16:28 +00:00
{% if letsencrypt.digitalocean is defined %}
2021-08-25 04:33:56 +00:00
--dns-digitalocean \
--dns-digitalocean-credentials /opt/certbot/certbot-creds.ini \
2024-04-05 23:16:28 +00:00
--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 %}
2021-08-25 04:33:56 +00:00
{% for domain in letsencrypt.domains %}-d '{{ domain }}' {% endfor %} \
$@