From: Gaƫtan Duchaussois Date: Thu, 4 Apr 2019 09:04:22 +0000 (+0200) Subject: debug3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fheads%2Fdebug_upgrade;p=github%2Ffretlink%2Fansible-kong-app.git debug3 --- 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) }}"