Added a var for select server, because of new ACME.sh default values.

This commit is contained in:
Lucas Maurice 2021-06-23 11:25:26 -04:00
parent 0f16f23770
commit bf88e02d73
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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 "" }}