From 767c0e538b6b7c751784444fd6c676668e3a1b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Mon, 23 Apr 2018 10:35:56 +0200 Subject: setup an array of services --- tasks/routes.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tasks/routes.yml') diff --git a/tasks/routes.yml b/tasks/routes.yml index 4581e8c..881fc96 100644 --- a/tasks/routes.yml +++ b/tasks/routes.yml @@ -1,6 +1,6 @@ - name: Get app routes uri: - url: "{{ kong_app_admin_url }}/services/{{ kong_app_service_name }}/routes" + url: "{{ kong_app_admin_url }}/services/{{ service.name }}/routes" method: GET validate_certs: no headers: @@ -9,14 +9,14 @@ - name: Setup route uri: - url: "{{ kong_app_admin_url }}/services/{{ kong_app_service_name }}/routes" + url: "{{ kong_app_admin_url }}/services/{{ service.name }}/routes" method: POST body: "{{ route | to_json }}" headers: apikey: "{{ kong_app_admin_apikey }}" Content-Type: application/json status_code: 201 - with_items: "{{ kong_app_routes }}" + with_items: "{{ service.routes | default([]) }}" loop_control: loop_var: route -- cgit v1.2.3