fdb68ed81a
In Ansible 6 this doesn't come out as a list. Refactor this into a more jinja-y pipeline that should do a better job of it. Change-Id: I5684291047a3e1000cd38ba33a951bed9fa3081f
18 lines
475 B
YAML
18 lines
475 B
YAML
- name: Make domain list
|
|
set_fact:
|
|
letsencrypt_certcheck_domains: []
|
|
|
|
- name: Build SSL domain list
|
|
set_fact:
|
|
letsencrypt_certcheck_domains: '{{ letsencrypt_certcheck_domains + hostvars[item]["letsencrypt_certcheck_domains"] }}'
|
|
with_inventory_hostnames:
|
|
- letsencrypt:!disabled
|
|
|
|
- name: Write configuration file
|
|
template:
|
|
dest: '{{ letsencrypt_certcheck_domain_list }}'
|
|
src: ssldomains.j2
|
|
owner: certcheck
|
|
group: certcheck
|
|
mode: 0644
|