aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/kong-app.yml
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2018-04-20 12:14:40 +0200
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2018-04-20 12:25:34 +0200
commitad5e125af59a34020943158999564af4f3a41a59 (patch)
tree4e559788feeb9fe0ff52e0e168eac28b9c9582b3 /tasks/kong-app.yml
parent1a33ca3184dbea838ea083a7cf026cf5884dc3f4 (diff)
downloadansible-kong-app-ad5e125af59a34020943158999564af4f3a41a59.tar.gz
ansible-kong-app-ad5e125af59a34020943158999564af4f3a41a59.tar.zst
ansible-kong-app-ad5e125af59a34020943158999564af4f3a41a59.zip
After testing
Diffstat (limited to 'tasks/kong-app.yml')
-rw-r--r--tasks/kong-app.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/tasks/kong-app.yml b/tasks/kong-app.yml
index d50c193..e162c09 100644
--- a/tasks/kong-app.yml
+++ b/tasks/kong-app.yml
@@ -7,15 +7,15 @@
7 status_code: 200,404 7 status_code: 200,404
8 register: kong_app_check_service 8 register: kong_app_check_service
9 9
10#- name: Update or Create service 10- name: Update or Create service
11# uri: 11 uri:
12# url: "{{ kong_app_admin_url }}/services/{{ kong_app_service_name }}" 12 url: "{{ kong_app_admin_url }}/services/{{ (kong_app_check_service.status == 404) | ternary('', kong_app_service_name) }}"
13# method: "{{ (kong_app_check_service.status_code == 404) | ternary ('POST', 'PATCH') }}" 13 method: "{{ (kong_app_check_service.status == 404) | ternary('POST', 'PATCH') }}"
14# body: "{{ kong_app_service_body | to_json }}" 14 body: "{{ kong_app_service_body | to_json }}"
15# headers: 15 status_code: 200,201
16# apikey: "{{ kong_app_admin_apikey }}" 16 headers:
17# Content-Type: application/json 17 apikey: "{{ kong_app_admin_apikey }}"
18# status_code: 200,201 18 Content-Type: application/json
19 19
20- name: Setup plugins 20- name: Setup plugins
21 import_tasks: plugins.yml 21 import_tasks: plugins.yml