Fix "list native roles" task (#779)

This commit fix "List Native Roles" task with Elasticsearch 7.11.0+
by removing the unused `body_format` parameter from `uri` module.

This parameter isn't used with a GET method but make request fail with
`request [GET /_security/role] does not support having a body` error
with Elasticsearch 7.11.0+.
This commit is contained in:
Julien Mailleret 2021-02-22 17:02:41 +01:00 committed by GitHub
parent e2caeb84b3
commit 30fcd95d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,6 @@
uri: uri:
url: "{{ es_api_uri }}/{{ es_security_api }}/role" url: "{{ es_api_uri }}/{{ es_security_api }}/role"
method: GET method: GET
body_format: json
user: "{{es_api_basic_auth_username}}" user: "{{es_api_basic_auth_username}}"
password: "{{es_api_basic_auth_password}}" password: "{{es_api_basic_auth_password}}"
force_basic_auth: yes force_basic_auth: yes