Templates now invoked as handler to cover edge cases
This commit is contained in:
parent
048fd63602
commit
31cc54ddbc
3 changed files with 29 additions and 20 deletions
|
|
@ -5,4 +5,13 @@
|
|||
|
||||
- name: load-native-realms
|
||||
include: ./handlers/shield/elasticsearch-shield-native.yml
|
||||
when: (es_users is defined and es_users.native is defined) or (es_roles is defined and es_roles.native is defined)
|
||||
when: (es_users is defined and es_users.native is defined) or (es_roles is defined and es_roles.native is defined)
|
||||
|
||||
|
||||
#Templates are a handler as they need to come after a restart e.g. suppose user removes shield on a running node and doesn't
|
||||
#specify es_api_basic_auth_username and es_api_basic_auth_password. The templates will subsequently not be removed if we don't wait for the node to restart.
|
||||
#Templates done after restart therefore - as a handler.
|
||||
|
||||
- name: load-templates
|
||||
include: ./handlers/elasticsearch-templates.yml
|
||||
when: es_templates
|
||||
Loading…
Add table
Add a link
Reference in a new issue