diff options
Diffstat (limited to 'tasks/routes.yml')
-rw-r--r-- | tasks/routes.yml | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
1 | - name: Get app routes | 1 | - name: Get app routes |
2 | uri: | 2 | uri: |
3 | url: "{{ kong_app_admin_url }}/services/{{ kong_app_service_name }}/routes" | 3 | url: "{{ kong_app_admin_url }}/services/{{ service.name }}/routes" |
4 | method: GET | 4 | method: GET |
5 | validate_certs: no | 5 | validate_certs: no |
6 | headers: | 6 | headers: |
@@ -9,14 +9,14 @@ | |||
9 | 9 | ||
10 | - name: Setup route | 10 | - name: Setup route |
11 | uri: | 11 | uri: |
12 | url: "{{ kong_app_admin_url }}/services/{{ kong_app_service_name }}/routes" | 12 | url: "{{ kong_app_admin_url }}/services/{{ service.name }}/routes" |
13 | method: POST | 13 | method: POST |
14 | body: "{{ route | to_json }}" | 14 | body: "{{ route | to_json }}" |
15 | headers: | 15 | headers: |
16 | apikey: "{{ kong_app_admin_apikey }}" | 16 | apikey: "{{ kong_app_admin_apikey }}" |
17 | Content-Type: application/json | 17 | Content-Type: application/json |
18 | status_code: 201 | 18 | status_code: 201 |
19 | with_items: "{{ kong_app_routes }}" | 19 | with_items: "{{ service.routes | default([]) }}" |
20 | loop_control: | 20 | loop_control: |
21 | loop_var: route | 21 | loop_var: route |
22 | 22 | ||