summaryrefslogtreecommitdiff
path: root/roles/apps/etherpad-lite/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/etherpad-lite/tasks/main.yml')
-rw-r--r--roles/apps/etherpad-lite/tasks/main.yml23
1 files changed, 14 insertions, 9 deletions
diff --git a/roles/apps/etherpad-lite/tasks/main.yml b/roles/apps/etherpad-lite/tasks/main.yml
index 0beeb1e1..416ab7ff 100644
--- a/roles/apps/etherpad-lite/tasks/main.yml
+++ b/roles/apps/etherpad-lite/tasks/main.yml
@@ -92,24 +92,29 @@
owner: "{{ etherpad_lite_app_uid }}"
group: "{{ etherpad_lite_app_gid }}"
-
-- name: generate pod manifests
+- name: install pod manifest
loop: "{{ etherpad_lite_instances | dict2items }}"
loop_control:
label: "{{ item.key }}"
- template:
- src: "pod-with-{{ item.value.database.type }}.yml.j2"
- dest: "/etc/kubernetes/manifests/etherpad-lite-{{ item.key }}.yml"
- mode: 0600
-
+ vars:
+ kubernetes_standalone_pod:
+ name: "etherpad-lite-{{ item.key }}"
+ spec: "{{ lookup('template', 'pod-spec-with-{{ item.value.database.type }}.yml.j2') }}"
+ mode: 0600
+ config_hash_items:
+ - path: "{{ etherpad_lite_base_path }}/{{ item.key }}/config/settings.json"
+ properties:
+ - checksum
+ include_role:
+ name: kubernetes/standalone/pod
- name: configure nginx vhost
loop: "{{ etherpad_lite_instances | dict2items }}"
- include_role:
- name: nginx/vhost
vars:
nginx_vhost:
name: "etherpad-lite-{{ item.key }}"
content: "{{ lookup('template', 'nginx-vhost.conf.j2') }}"
acme: true
hostnames: "{{ item.value.hostnames }}"
+ include_role:
+ name: nginx/vhost