certbot_create_method 'dns-cloudflare'

This commit is contained in:
Victor Seva
2025-11-21 13:21:07 +01:00
parent d35de757e0
commit 3eaa55b81e
7 changed files with 64 additions and 2 deletions
+5
View File
@@ -40,6 +40,9 @@ certbot_create_command: >-
{{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }}
{{ cert_item.webroot | default(certbot_webroot) if certbot_create_method == 'webroot' else '' }}
{{ certbot_create_extra_args }}
{{ '--dns-cloudflare-credentials /etc/letsencrypt/dnscloudflare.ini'
if certbot_create_method == 'dns-cloudflare'
else '' }}
--cert-name {{ cert_item_name }}
-d {{ cert_item.domains | join(',') }}
{{ '--expand' if certbot_expand else '' }}
@@ -58,6 +61,8 @@ certbot_create_standalone_stop_services:
# - apache
# - varnish
certbot_dns_cloudflare_api_token: fakeone
# Available options: 'package', 'snap', 'source'.
certbot_install_method: 'package'