]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/commitdiff
upstream: allow 200 as a valid return code when adding target
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Fri, 10 Dec 2021 14:10:41 +0000 (15:10 +0100)
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Fri, 10 Dec 2021 14:10:41 +0000 (15:10 +0100)
tasks/upstream.yml

index 47f2e89ff1cd099cd56b632f4cf6bf737feb9af8..6aab61709af56fc882356cfc6769205db8e62a01 100644 (file)
@@ -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