summaryrefslogtreecommitdiff
path: root/roles/apps/coturn/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-30 21:46:18 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-30 21:46:18 +0200
commitd89e58a60ff8350b1650610c14996ca0a69e0d70 (patch)
treec567f913b031898cdd8f4c7fb94609f21587fef6 /roles/apps/coturn/tasks
parentresync preseed files (diff)
parentfix pod manifest permissions (diff)
Merge branch 'topic/standalone-kubelet'
Diffstat (limited to 'roles/apps/coturn/tasks')
-rw-r--r--roles/apps/coturn/tasks/main.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/roles/apps/coturn/tasks/main.yml b/roles/apps/coturn/tasks/main.yml
index 132e4847..176be664 100644
--- a/roles/apps/coturn/tasks/main.yml
+++ b/roles/apps/coturn/tasks/main.yml
@@ -68,8 +68,15 @@
include_role:
name: nginx/vhost
-- name: generate pod manifests
- template:
- src: "pod.yml.j2"
- dest: "/etc/kubernetes/manifests/coturn-{{ coturn_realm }}.yml"
- mode: 0600
+- name: install pod manifest
+ vars:
+ kubernetes_standalone_pod:
+ name: "coturn-{{ coturn_realm }}"
+ spec: "{{ lookup('template', 'pod-spec.yml.j2') }}"
+ mode: "0600"
+ config_hash_items:
+ - path: "{{ coturn_base_path }}/{{ coturn_realm }}/config/turnserver.conf"
+ properties:
+ - checksum
+ include_role:
+ name: kubernetes/standalone/pod