* remove multi instances support The goal is to stop supporting installation of more than one node in the same host. This commit update the Ansible role README documentation and remove the multi instances kitchen test. * remove systemd and init.d templates As we no more need to support more than one node on the same host, we no more need to override init files provided by elasticsearch official packages. * remove file script feature File scripts have been removed since elasticsearch 6.0 (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_scripting_changes.html#_file_scripts_removed) * remove custom user and custom group ES_USER and ES_GROUP settings are no longer supported (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_packaging_changes.html#_configuring_custom_user_and_group_for_package_is_no_longer_allowed) * add upgrade procedure * use same task for license activation with and without authentication
19 lines
640 B
YAML
19 lines
640 B
YAML
---
|
|
- name: Activate ES license (with security authentication)
|
|
uri:
|
|
method: PUT
|
|
url: "http://{{es_api_host}}:{{es_api_port}}/_xpack/license?acknowledge=true"
|
|
user: "{{es_api_basic_auth_username | default(omit)}}"
|
|
password: "{{es_api_basic_auth_password | default(omit)}}"
|
|
body_format: json
|
|
body: "{{ es_xpack_license }}"
|
|
return_content: yes
|
|
register: license_activated
|
|
no_log: True
|
|
failed_when: >
|
|
license_activated.status != 200 or
|
|
license_activated.json.license_status is not defined or
|
|
license_activated.json.license_status != 'valid'
|
|
|
|
- debug:
|
|
msg: "License: {{ license_activated }}"
|