--- - name: generate pod manifests loop: "{{ collabora_code_instances | dict2items }}" loop_control: label: "{{ item.key }}" template: src: "pod.yml.j2" dest: "/etc/kubernetes/manifests/collabora-code-{{ item.key }}.yml" mode: 0600 - name: configure nginx vhost loop: "{{ collabora_code_instances | dict2items }}" include_role: name: nginx/vhost vars: nginx_vhost: name: "collabora-code-{{ item.key }}" template: generic-proxy-no-buffering-with-acme acme: true hostnames: "{{ item.value.hostnames }}" proxy_pass: "http://127.0.0.1:{{ item.value.port }}" proxy_redirect: redirect: "http://$host:9980/" replacement: "https://$host/"