ansible-role-elasticsearch/handlers/security/elasticsearch-security.yml

14 lines
614 B
YAML
Raw Normal View History

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