From 30fcd95d51a7f593e65ad2984c9fe9f54a413f85 Mon Sep 17 00:00:00 2001 From: Julien Mailleret <8582351+jmlrt@users.noreply.github.com> Date: Mon, 22 Feb 2021 17:02:41 +0100 Subject: [PATCH] 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+. --- tasks/xpack/security/elasticsearch-security-native.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/xpack/security/elasticsearch-security-native.yml b/tasks/xpack/security/elasticsearch-security-native.yml index 0d04a28..f850264 100644 --- a/tasks/xpack/security/elasticsearch-security-native.yml +++ b/tasks/xpack/security/elasticsearch-security-native.yml @@ -137,7 +137,6 @@ uri: url: "{{ es_api_uri }}/{{ es_security_api }}/role" method: GET - body_format: json user: "{{es_api_basic_auth_username}}" password: "{{es_api_basic_auth_password}}" force_basic_auth: yes