From 995f4ebcec8a96789f4528c773de5993298877ad Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sat, 26 Mar 2022 15:45:55 +0100 Subject: [PATCH] If no DNS provider key is set, make sure there is a default --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index cd3bc7b..dd9c6e9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -70,9 +70,9 @@ cmd: ./acme.sh --issue -d {{ item.name }} -d '*.{{ item.name }}' --dns dns_{{ item.dns_provider }} chdir: ~/.acme.sh environment: - INWX_User: "{{ inwx_user }}" - INWX_Password: "{{ inwx_pass }}" - GANDI_LIVEDNS_KEY: "{{ gandi_livedns_key }}" + INWX_User: "{{ inwx_user | default('') }}" + INWX_Password: "{{ inwx_pass | default('') }}" + GANDI_LIVEDNS_KEY: "{{ gandi_livedns_key | default('') }}" loop: "{{ domains }}" register: cert_result changed_when: cert_result.rc == 0 and "Cert success." in cert_result.stdout