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