diff options
-rw-r--r-- | tasks/plugins.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tasks/plugins.yml b/tasks/plugins.yml index f6d1c78..90a0386 100644 --- a/tasks/plugins.yml +++ b/tasks/plugins.yml | |||
@@ -76,6 +76,22 @@ | |||
76 | - method == "PATCH" | 76 | - method == "PATCH" |
77 | no_log: true | 77 | no_log: true |
78 | 78 | ||
79 | - name: Give info on errors | ||
80 | debug: | ||
81 | msg: "{{ info }}" | ||
82 | loop: "{{ kong_plugin_update_st.results }}" | ||
83 | loop_control: | ||
84 | label: "{{ item.plugin.name }}" | ||
85 | when: | ||
86 | - kong_plugin_update_st is failed | ||
87 | - item is failed | ||
88 | - item.plugin is defined | ||
89 | - item.plugin.name is defined | ||
90 | - item.json is defined | ||
91 | - item.json.message is defined | ||
92 | vars: | ||
93 | info: "{{ item.json.message }}" | ||
94 | |||
79 | - name: Fail otherwise | 95 | - name: Fail otherwise |
80 | fail: | 96 | fail: |
81 | msg: "This plugin {{ result.plugin.name }} failed to be created" | 97 | msg: "This plugin {{ result.plugin.name }} failed to be created" |