From ac55e08d054af3ac71b022e65301f0834137105a Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 22 Nov 2022 09:43:52 +1100 Subject: [PATCH] letsencrypt: build txt record lists betterer These list constructions look wrong, in hindsight I'm not really sure how it works. Ansible 6 seems to barf on it. Make this one evaluated statement. Change-Id: I2a5d4926221f758501f95a8689e4304f814f405f --- playbooks/roles/letsencrypt-install-txt-record/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/letsencrypt-install-txt-record/tasks/main.yaml b/playbooks/roles/letsencrypt-install-txt-record/tasks/main.yaml index b7afad0139..c1545e06e8 100644 --- a/playbooks/roles/letsencrypt-install-txt-record/tasks/main.yaml +++ b/playbooks/roles/letsencrypt-install-txt-record/tasks/main.yaml @@ -4,7 +4,7 @@ - name: Build key list set_fact: - acme_txt_keys: '{{ acme_txt_keys }} + {{ hostvars[item]["acme_txt_required"] | default([]) }}' + acme_txt_keys: '{{ acme_txt_keys + hostvars[item]["acme_txt_required"]|default([]) }}' with_inventory_hostnames: - letsencrypt:!disabled