summaryrefslogtreecommitdiff
path: root/roles/apps/collabora/code/tasks/nginx-vhost.yml
blob: afd8f1e07b522bad4f1a86d1205ac96d1413fdbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: render nginx-vhost custom config
  set_fact:
    collabora_code_nginx_vhost_custom: "{{ lookup('template', 'nginx-vhost.conf.j2') }}"

- name: configure nginx vhost
  vars:
    nginx_vhost:
      name: "collabora-code-{{ item.key }}"
      template: generic
      tls:
        certificate_provider: "{{ acme_client }}"
      hostnames:
      - "{{ item.value.hostname }}"
      custom: "{{ collabora_code_nginx_vhost_custom }}"
  include_role:
    name: nginx/vhost