From 582c79c607f4a564f49b56a0b1b566eb8c0cd1c5 Mon Sep 17 00:00:00 2001 From: Michael Russell Date: Tue, 9 Jul 2019 21:26:10 +0200 Subject: [PATCH] Add back in force_basic_auth for all http requests Related: #576 This is needed when using security for 6.x. All other http requests still have this parameter added. --- tasks/elasticsearch-template.yml | 1 + tasks/xpack/security/elasticsearch-xpack-activation.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/elasticsearch-template.yml b/tasks/elasticsearch-template.yml index e1bc80d..8af780d 100644 --- a/tasks/elasticsearch-template.yml +++ b/tasks/elasticsearch-template.yml @@ -20,6 +20,7 @@ status_code: 200 user: "{{es_api_basic_auth_username | default(omit)}}" password: "{{es_api_basic_auth_password | default(omit)}}" + force_basic_auth: yes body_format: json body: "{{ lookup('file', item) }}" when: load_templates.changed and es_start_service diff --git a/tasks/xpack/security/elasticsearch-xpack-activation.yml b/tasks/xpack/security/elasticsearch-xpack-activation.yml index 996d86a..7da085e 100644 --- a/tasks/xpack/security/elasticsearch-xpack-activation.yml +++ b/tasks/xpack/security/elasticsearch-xpack-activation.yml @@ -8,6 +8,7 @@ body_format: json body: "{{ es_xpack_license }}" return_content: yes + force_basic_auth: yes register: license_activated no_log: True failed_when: >