From e4ad053989e521a7542dd64da49d85cda4eb53f1 Mon Sep 17 00:00:00 2001 From: melvinsoft Date: Tue, 13 Sep 2022 17:43:53 -0300 Subject: [PATCH 1/2] add fix for custom domains in Tahoe 2.0 --- playbooks/roles/custom_domains/tasks/main.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/playbooks/roles/custom_domains/tasks/main.yml b/playbooks/roles/custom_domains/tasks/main.yml index 0f1da5e03e2..383189ce10d 100644 --- a/playbooks/roles/custom_domains/tasks/main.yml +++ b/playbooks/roles/custom_domains/tasks/main.yml @@ -39,6 +39,30 @@ - custom_domains - custom_domains:get_domains +- name: Set fact letsencrypt_certs for single cert + set_fact: + letsencrypt_single: ['domains': ['{{ letsencrypt_single_cert }}']] + when: letsencrypt_single_cert is defined and letsencrypt_execute_for_single_domain == true + tags: + - custom_domains + - custom_domains:get_domains + +- name: Print single domain + debug: + var: letsencrypt_single + tags: + - custom_domains + - custom_domains:debug + +- name: Set fact letsencrypt_certs combined with single cert + set_fact: + letsencrypt_certs: "{{ letsencrypt_certs + letsencrypt_single }}" + when: letsencrypt_single_cert is defined and letsencrypt_execute_for_single_domain == true + tags: + - custom_domains + - custom_domains:get_domains + + - name: Print letsencrypt_certs debug: var: letsencrypt_certs From c22ed8ea4e2d388101b0c3642b58978be1cf064f Mon Sep 17 00:00:00 2001 From: melvinsoft Date: Tue, 13 Sep 2022 17:45:17 -0300 Subject: [PATCH 2/2] fixup! add fix for custom domains in Tahoe 2.0 --- playbooks/roles/custom_domains/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/playbooks/roles/custom_domains/tasks/main.yml b/playbooks/roles/custom_domains/tasks/main.yml index 383189ce10d..2f5ddf7c75b 100644 --- a/playbooks/roles/custom_domains/tasks/main.yml +++ b/playbooks/roles/custom_domains/tasks/main.yml @@ -62,7 +62,6 @@ - custom_domains - custom_domains:get_domains - - name: Print letsencrypt_certs debug: var: letsencrypt_certs