2019-10-18 16:54:46 +01:00
|
|
|
---
|
|
|
|
|
- name: Activate ES trial license (with security authentication)
|
|
|
|
|
uri:
|
|
|
|
|
method: POST
|
2019-10-31 10:54:53 +00:00
|
|
|
url: "{{ es_api_uri }}/{{ es_license_api }}/start_trial?acknowledge=true"
|
2019-10-18 16:54:46 +01:00
|
|
|
user: "{{es_api_basic_auth_username | default(omit)}}"
|
|
|
|
|
password: "{{es_api_basic_auth_password | default(omit)}}"
|
|
|
|
|
return_content: yes
|
|
|
|
|
force_basic_auth: yes
|
|
|
|
|
status_code:
|
|
|
|
|
- 200
|
|
|
|
|
- 403
|
|
|
|
|
validate_certs: "{{ es_validate_certs }}"
|
|
|
|
|
register: trial_license_activated
|
|
|
|
|
when: es_xpack_trial
|
|
|
|
|
|
|
|
|
|
- name: Trial license
|
|
|
|
|
debug: msg={{ trial_license_activated }}
|