From c4e45883ca7a19878a6b3cc0a7ec25acf744a85e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABtan=20Duchaussois?= Date: Thu, 4 Apr 2019 11:04:22 +0200 Subject: [PATCH] debug3 --- tasks/plugins.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tasks/plugins.yml b/tasks/plugins.yml index e0eee81..1718864 100644 --- a/tasks/plugins.yml +++ b/tasks/plugins.yml @@ -24,6 +24,19 @@ loop_control: loop_var: plugin +- name: debug3 + debug: + msg: "{{ plugin | combine(current_body) | to_json }}" + vars: + current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" + current_id_hash: + id: "{{ current_config.id }}" + current_body: "{{ (current_id_hash.id == '') | ternary({}, current_id_hash) }}" + exists_plugin: "{{ current_id_hash.id == '' }}" + with_items: "{{ service.plugins | default([]) }}" + loop_control: + loop_var: plugin + - name: Setup plugin uri: url: "{{ server.kong_app_admin_url }}/{{ exists_plugin | ternary('services/' ~ service.name ~ '/plugins','plugins/' ~ current_config.id) }}" -- 2.41.0