summaryrefslogtreecommitdiff
path: root/roles/collabora/code/tasks/main.yml
blob: 8682be982b15db896d93b64e48613ee6a2064fd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- 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/"