475edcbe98
We've seen the certcheck list building loop fail because some host doesn't ahve the appropriate var in its hostvars. Unfortunately ansible logging doesn't record the value of the list iteration item when an iteration fails. It only records this value when it succeeds.... Work around this with our own debugging output. Additionally use a unique loop_var value in case we're hitting some sort of 'item' name collision problem. It is just good practice to avoid 'item' anyway. Change-Id: Ia3ed089187e0b8397413fbb989c44906d56811ae
19 lines
432 B
YAML
19 lines
432 B
YAML
- name: Make domain list
|
|
set_fact:
|
|
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:
|
|
dest: '{{ letsencrypt_certcheck_domain_list }}'
|
|
src: ssldomains.j2
|
|
owner: certcheck
|
|
group: certcheck
|
|
mode: 0644
|