Fix deprecated license URL

This commit is contained in:
pemontto 2019-10-18 18:27:55 +01:00
parent ab70e6f11d
commit b59262cb34
No known key found for this signature in database
GPG key ID: EDCB93C3DA1B5DA9

View file

@ -2,7 +2,7 @@
- name: Activate ES license (with security authentication) - name: Activate ES license (with security authentication)
uri: uri:
method: PUT method: PUT
url: "{{ es_api_uri }}/_xpack/license?acknowledge=true" url: "{{ es_api_uri }}/_{{ 'xpack/' if es_version is version_compare('7.0.0', '<') else '' }}license?acknowledge=true"
user: "{{es_api_basic_auth_username | default(omit)}}" user: "{{es_api_basic_auth_username | default(omit)}}"
password: "{{es_api_basic_auth_password | default(omit)}}" password: "{{es_api_basic_auth_password | default(omit)}}"
body_format: json body_format: json