From e8dd12d4d9248db0df8ca17969924083e588e961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Fri, 10 Dec 2021 15:10:41 +0100 Subject: upstream: allow 200 as a valid return code when adding target --- tasks/upstream.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/upstream.yml b/tasks/upstream.yml index 47f2e89..6aab617 100644 --- a/tasks/upstream.yml +++ b/tasks/upstream.yml @@ -29,7 +29,7 @@ headers: apikey: "{{ server.kong_app_admin_apikey }}" Content-Type: application/json - status_code: 201 + status_code: 200,201 with_items: "{{ upstream.targets | default([]) }}" loop_control: loop_var: target -- cgit v1.2.3