summaryrefslogtreecommitdiff
path: root/roles/apps/coturn/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/coturn/tasks/main.yml')
-rw-r--r--roles/apps/coturn/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/apps/coturn/tasks/main.yml b/roles/apps/coturn/tasks/main.yml
index 4e5adbd5..44540427 100644
--- a/roles/apps/coturn/tasks/main.yml
+++ b/roles/apps/coturn/tasks/main.yml
@@ -57,9 +57,9 @@
mode: "0640"
reload: |
pod_id=$(crictl pods -q --state ready --name "^coturn-{{ coturn_realm }}-{{ ansible_nodename }}$")
- [ -n "$pod_id" ] || exit 42
+ [ -n "$pod_id" ] || exit 0
container_id=$(crictl ps -q --name '^coturn$' -p "$pod_id")
- [ -n "$container_id" ] || exit 42
+ [ -n "$container_id" ] || exit 0
crictl stop "$container_id"
- name: configure nginx vhost