1 - name: Upstream Creation
2 import_tasks: upstream.yml
3 when: service.upstream is defined
5 # https://docs.konghq.com/2.1.x/admin-api/#update-or-create-service
6 - name: Update or Create service
8 url: "{{ server.kong_app_admin_url }}/services/{{ service.name }}"
10 body: "{{ service_body | to_json }}"
13 apikey: "{{ server.kong_app_admin_apikey }}"
14 Content-Type: application/json
17 name: "{{ service.name }}"
18 url: "{{ service.url }}"
21 import_tasks: plugins.yml
24 import_tasks: routes.yml