system-config/playbooks/roles/letsencrypt-config-certcheck/tasks/main.yaml
Ian Wienand fdb68ed81a
letsencrypt-request-certs: refactor certcheck list
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
2022-11-23 08:26:28 +11:00

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