Move restart to main from handler
This commit is contained in:
parent
7b32a17d59
commit
914cb7867c
5 changed files with 7 additions and 11 deletions
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
# Restart service and ensure it is enabled
|
||||
- name: restart elasticsearch
|
||||
include: ./handlers/elasticsearch-restart.yml
|
||||
service: name={{instance_init_script | basename}} state=restarted enabled=yes
|
||||
when: es_restart_on_change and es_start_service and ((plugin_installed is defined and plugin_installed.changed) or (config_updated is defined and config_updated.changed) or (xpack_state.changed) or (debian_elasticsearch_install_from_repo.changed or redhat_elasticsearch_install_from_repo.changed or elasticsearch_install_from_package.changed))
|
||||
|
||||
# All security specific actions should go in here
|
||||
- name: activate-security
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue