aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/plugins.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/plugins.yml b/tasks/plugins.yml
index 164f6f2..f6d1c78 100644
--- a/tasks/plugins.yml
+++ b/tasks/plugins.yml
@@ -26,7 +26,7 @@
26 current_config: "{{ plugins_list | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" 26 current_config: "{{ plugins_list | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}"
27 current_id_hash: 27 current_id_hash:
28 id: "{{ current_config.id }}" 28 id: "{{ current_config.id }}"
29 current_body: "{{ not current_id_hash.id | ternary({}, current_id_hash) }}" 29 current_body: "{{ (not current_id_hash.id) | ternary({}, current_id_hash) }}"
30 exists_plugin: "{{ not current_id_hash.id }}" 30 exists_plugin: "{{ not current_id_hash.id }}"
31 when: not kong_app_service_plugins_check is skipped 31 when: not kong_app_service_plugins_check is skipped
32 ignore_errors: true 32 ignore_errors: true
@@ -58,7 +58,7 @@
58 uri: 58 uri:
59 url: "{{ server.kong_app_admin_url }}/services/{{ service.name }}/plugins" 59 url: "{{ server.kong_app_admin_url }}/services/{{ service.name }}/plugins"
60 method: "POST" 60 method: "POST"
61 body: "{{ body }}" 61 body: "{{ body | to_json }}"
62 headers: "{{ headers }}" 62 headers: "{{ headers }}"
63 status_code: 200,201 63 status_code: 200,201
64 loop: "{{ kong_plugin_update_st.results }}" 64 loop: "{{ kong_plugin_update_st.results }}"