2017-01-04 13:23:22 +00:00
|
|
|
---
|
2017-01-04 16:39:00 +00:00
|
|
|
- name: Ensure elasticsearch is started
|
|
|
|
|
service: name={{instance_init_script | basename}} state=started enabled=yes
|
2017-01-04 13:23:22 +00:00
|
|
|
|
2017-01-04 16:39:00 +00:00
|
|
|
- name: Wait for elasticsearch to startup
|
|
|
|
|
wait_for: host={{es_api_host}} port={{es_api_port}} delay=10
|
|
|
|
|
|
2017-01-04 13:23:22 +00:00
|
|
|
- name: activate-license
|
2017-01-11 13:02:23 +00:00
|
|
|
include: ./handlers/security/elasticsearch-xpack-activation.yml
|
2017-01-04 13:23:22 +00:00
|
|
|
when: es_enable_xpack and es_xpack_license is defined and es_xpack_license != ''
|
|
|
|
|
|
|
|
|
|
- name: load-native-realms
|
2017-01-11 13:02:23 +00:00
|
|
|
include: ./handlers/security/elasticsearch-security-native.yml
|
2017-01-04 13:23:22 +00:00
|
|
|
when: (es_users is defined and es_users.native is defined) or (es_roles is defined and es_roles.native is defined)
|