Merge "Allow 400 response when creating kibana ES index"
This commit is contained in:
commit
e9981b7ba8
@ -11,7 +11,13 @@
|
|||||||
method: PUT
|
method: PUT
|
||||||
body: "{{ kibana_default_index_options | to_json }}"
|
body: "{{ kibana_default_index_options | to_json }}"
|
||||||
body_format: json
|
body_format: json
|
||||||
status_code: 200, 201
|
status_code: 200, 201, 400
|
||||||
|
register: result
|
||||||
|
failed_when:
|
||||||
|
# If the index already exists, Elasticsearch will respond with a 400 error.
|
||||||
|
- result.status == 400
|
||||||
|
# Format: {"json": {"error": {"type": "index_already_exists_exception"}}}
|
||||||
|
- result.get('json', {}).get('error', {}).get('type') != 'index_already_exists_exception'
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Wait for kibana to register in elasticsearch
|
- name: Wait for kibana to register in elasticsearch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user