aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2019-04-05 11:43:51 +0200
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2019-04-05 13:28:04 +0200
commit03c603826db1550e966c72d062ababefccf25155 (patch)
treee36dc94530e209b841d3065420989e004b9f9676
parent082ff4cbc61abd4675158056d1b74317aacb173d (diff)
downloadansible-kong-app-03c603826db1550e966c72d062ababefccf25155.tar.gz
ansible-kong-app-03c603826db1550e966c72d062ababefccf25155.tar.zst
ansible-kong-app-03c603826db1550e966c72d062ababefccf25155.zip
Fix retry and missing parenthesis
-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 }}"