--- - name: render nginx-vhost custom config set_fact: etherpad_lite_nginx_vhost_custom: "{{ lookup('template', 'nginx-vhost.conf.j2') }}" - name: configure nginx vhost vars: nginx_vhost: name: "etherpad-lite-{{ item.key }}" template: generic tls: certificate_provider: "{{ acme_client }}" hostnames: "{{ item.value.hostnames }}" custom: "{{ etherpad_lite_nginx_vhost_custom }}" include_role: name: nginx/vhost