Add es_license_api variable

This commit is contained in:
pemontto 2019-10-31 10:54:53 +00:00
parent 9b427f148d
commit 70143c6327
No known key found for this signature in database
GPG key ID: EDCB93C3DA1B5DA9
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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