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 == '' }}"
+ current_body: "{{ not current_id_hash.id | ternary({}, current_id_hash) }}"
+ exists_plugin: "{{ not current_id_hash.id }}"
when: not kong_app_service_plugins_check is skipped
no_log: true