2016-09-27 16:59:20 +02:00
|
|
|
---
|
2017-01-11 13:02:23 +00:00
|
|
|
- name: Activate ES license (with security authentication)
|
2016-09-21 17:04:31 +02:00
|
|
|
uri:
|
|
|
|
|
method: PUT
|
2019-10-31 10:54:53 +00:00
|
|
|
url: "{{ es_api_uri }}/{{ es_license_api }}?acknowledge=true"
|
2019-06-03 14:18:09 +02:00
|
|
|
user: "{{es_api_basic_auth_username | default(omit)}}"
|
|
|
|
|
password: "{{es_api_basic_auth_password | default(omit)}}"
|
2016-09-21 17:04:31 +02:00
|
|
|
body_format: json
|
|
|
|
|
body: "{{ es_xpack_license }}"
|
|
|
|
|
return_content: yes
|
2019-07-09 21:26:10 +02:00
|
|
|
force_basic_auth: yes
|
2019-10-12 00:03:47 +01:00
|
|
|
validate_certs: "{{ es_validate_certs }}"
|
2016-09-21 17:04:31 +02:00
|
|
|
register: license_activated
|
2017-01-05 12:24:51 +00:00
|
|
|
no_log: True
|
2016-09-21 17:04:31 +02:00
|
|
|
failed_when: >
|
|
|
|
|
license_activated.status != 200 or
|
2016-09-27 16:59:20 +02:00
|
|
|
license_activated.json.license_status is not defined or
|
2016-09-21 17:04:31 +02:00
|
|
|
license_activated.json.license_status != 'valid'
|
|
|
|
|
|
2019-10-18 16:54:46 +01:00
|
|
|
- name: License
|
|
|
|
|
debug: msg={{ license_activated }}
|