Add es_license_api variable
This commit is contained in:
parent
9b427f148d
commit
70143c6327
3 changed files with 4 additions and 4 deletions
|
|
@ -40,14 +40,14 @@ es_api_scheme: "http"
|
|||
es_api_host: "localhost"
|
||||
es_api_port: 9200
|
||||
es_api_uri: "{{ es_api_scheme }}://{{ es_api_host }}:{{ es_api_port }}"
|
||||
es_security_api: "{{ '_security' if es_version is version_compare('7.0.0', '>=') else '_xpack/security' }}"
|
||||
es_license_api: "{{ '_license' if es_version is version_compare('7.0.0', '>=') else '_xpack/license' }}"
|
||||
es_api_sleep: 15
|
||||
es_debian_startup_timeout: 10
|
||||
|
||||
# JVM custom parameters
|
||||
es_jvm_custom_parameters: ''
|
||||
|
||||
es_security_api: "{{ '_security' if es_version is version_compare('7.0.0', '>=') else '_xpack/security' }}"
|
||||
|
||||
# SSL/TLS parameters
|
||||
es_enable_http_ssl: false
|
||||
es_enable_transport_ssl: false
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
- name: Activate ES license (with security authentication)
|
||||
uri:
|
||||
method: PUT
|
||||
url: "{{ es_api_uri }}/_{{ 'xpack/' if es_version is version_compare('7.0.0', '<') else '' }}license?acknowledge=true"
|
||||
url: "{{ es_api_uri }}/{{ es_license_api }}?acknowledge=true"
|
||||
user: "{{es_api_basic_auth_username | default(omit)}}"
|
||||
password: "{{es_api_basic_auth_password | default(omit)}}"
|
||||
body_format: json
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
- name: Activate ES trial license (with security authentication)
|
||||
uri:
|
||||
method: POST
|
||||
url: "{{ es_api_uri }}/_{{ 'xpack/' if es_version is version_compare('7.0.0', '<') else '' }}license/start_trial?acknowledge=true"
|
||||
url: "{{ es_api_uri }}/{{ es_license_api }}/start_trial?acknowledge=true"
|
||||
user: "{{es_api_basic_auth_username | default(omit)}}"
|
||||
password: "{{es_api_basic_auth_password | default(omit)}}"
|
||||
return_content: yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue