Re-structure to make xpack idempotent

This commit is contained in:
Dale McDiarmid 2017-03-15 16:12:22 -04:00
parent ddbf4ad956
commit 595368f873
6 changed files with 9 additions and 26 deletions

View file

@ -45,4 +45,12 @@
- meta: flush_handlers
- name: Wait for elasticsearch to startup
wait_for: host={{es_api_host}} port={{es_api_port}} delay=5 connect_timeout=1
wait_for: host={{es_api_host}} port={{es_api_port}} delay=5 connect_timeout=1
- name: activate-license
include: ./xpack/security/elasticsearch-xpack-activation.yml
when: es_enable_xpack and es_xpack_license is defined and es_xpack_license != ''
#perform security actions here now elasticsearch is started
- include: ./xpack/security/elasticsearch-security-native.yml
when: (es_enable_xpack and '"security" in es_xpack_features') and ((es_users is defined and es_users.native is defined) or (es_roles is defined and es_roles.native is defined))