Merge "Add debugging info to certcheck list building"

This commit is contained in:
Zuul 2023-12-02 03:29:30 +00:00 committed by Gerrit Code Review
commit 322e4694ed
2 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,12 @@
# We've seen the lookups of hosts in hostvars below fail to find the
# letsencrypt_certcheck_domains value. For some reason ansible doesn't
# record the value of our loopvar when failing an iteration (it does when
# the loop iteration succeeds) so we don't know where it is breaking. Add
# our own debugging here to work around this problem.
- name: Record host being looked up for le certcheck domains
debug:
msg: "Checking domains for {{ inv_hostname }}"
- name: Build SSL domain list
set_fact:
letsencrypt_certcheck_domains: '{{ letsencrypt_certcheck_domains + hostvars[inv_hostname]["letsencrypt_certcheck_domains"] }}'

View File

@ -2,11 +2,12 @@
set_fact:
letsencrypt_certcheck_domains: []
- name: Build SSL domain list
set_fact:
letsencrypt_certcheck_domains: '{{ letsencrypt_certcheck_domains + hostvars[item]["letsencrypt_certcheck_domains"] }}'
- name: Debug build SSL domain list
include_tasks: build_le_domain_list.yaml
with_inventory_hostnames:
- letsencrypt:!disabled
loop_control:
loop_var: inv_hostname
- name: Write configuration file
template: