diff --git a/defaults/main.yml b/defaults/main.yml index 03d96c6..61de432 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -14,7 +14,14 @@ acme_sh_domains: debug: false reload_command: service nginx restart +acme_server: letsencrypt + # acme_cloudflare_token: xxxx # acme_cloudflare_account_id: xxxx # acme_cloudflare_zone_id: xxxx # acme_cloudflare_email: xxxx + +# acme_cloudflare_token: xxxx +# acme_cloudflare_account_id: xxxx +# acme_cloudflare_zone_id: xxxx +# acme_cloudflare_email: xxxx \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index b6c91f6..78f33d5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -49,7 +49,7 @@ # Issue or renew the certificate with legacy token - name: Issue acme.sh certificate(s) (legacy token) command: >- - ./acme.sh --issue -d {{ item.domain }} --dns dns_cf + ./acme.sh --issue -d {{ item.domain }} --dns dns_cf --server {{ acme_server }} {{ "--force" if item.force_issue | default(false) or item.force_renew | default(false) else "" }} {{ "--staging" if item.staging | default(false) else "" }} {{ "--debug" if item.debug | default(false) else "" }} @@ -72,7 +72,7 @@ # Issue or renew the certificate with new app token - name: Issue acme.sh certificate(s) command: >- - ./acme.sh --issue -d {{ item.domain }} --dns dns_cf + ./acme.sh --issue -d {{ item.domain }} --dns dns_cf --server {{ acme_server }} {{ "--force" if item.force_issue | default(false) or item.force_renew | default(false) else "" }} {{ "--staging" if item.staging | default(false) else "" }} {{ "--debug" if item.debug | default(false) else "" }}