Merge "Add debugging info to certcheck list building"
This commit is contained in:
commit
322e4694ed
@ -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"] }}'
|
@ -2,11 +2,12 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
letsencrypt_certcheck_domains: []
|
letsencrypt_certcheck_domains: []
|
||||||
|
|
||||||
- name: Build SSL domain list
|
- name: Debug build SSL domain list
|
||||||
set_fact:
|
include_tasks: build_le_domain_list.yaml
|
||||||
letsencrypt_certcheck_domains: '{{ letsencrypt_certcheck_domains + hostvars[item]["letsencrypt_certcheck_domains"] }}'
|
|
||||||
with_inventory_hostnames:
|
with_inventory_hostnames:
|
||||||
- letsencrypt:!disabled
|
- letsencrypt:!disabled
|
||||||
|
loop_control:
|
||||||
|
loop_var: inv_hostname
|
||||||
|
|
||||||
- name: Write configuration file
|
- name: Write configuration file
|
||||||
template:
|
template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user