blob: ce88fe0defa9edb64b86fe12551c36b0bb65280f (
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
25
26
27
28
|
---
- name: create collabora-code config subdirectory
loop: "{{ collabora_code_instances | list }}"
file:
path: "{{ collabora_code_base_path }}/{{ item }}/config"
state: directory
## TODO: render config.xml
- 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 }}"
content: "{{ lookup('template', 'nginx-vhost.conf.j2') }}"
acme: true
hostnames: "{{ item.value.hostnames }}"
|