Force basic auth
This commit is contained in:
parent
8580a01267
commit
f092dc34f5
2
roles/elastic-stack/ansible-elasticsearch/tasks/main.yml
Normal file → Executable file
2
roles/elastic-stack/ansible-elasticsearch/tasks/main.yml
Normal file → Executable file
@ -128,6 +128,7 @@
|
||||
validate_certs: no
|
||||
status_code: 200,401
|
||||
return_content: yes
|
||||
force_basic_auth: yes
|
||||
timeout: 4
|
||||
register: _result
|
||||
until: ( _result.json is defined) and (_result.json.status == "green")
|
||||
@ -145,6 +146,7 @@
|
||||
password: "{{ elasticsearch_xpack_security_password }}"
|
||||
body: '{ "password" : "{{ item.value["password"] }}", "roles" : {{ item.value["roles"] }} }'
|
||||
validate_certs: no
|
||||
force_basic_auth: yes
|
||||
loop: "{{ elasticsearch_xpack_users|default({})|dict2items }}"
|
||||
register: http_response
|
||||
failed_when: http_response.status != 200
|
||||
|
||||
Loading…
Reference in New Issue
Block a user