- 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