diff --git a/tasks/elasticsearch-Debian.yml b/tasks/elasticsearch-Debian.yml index 3f716486..4590da14 100644 --- a/tasks/elasticsearch-Debian.yml +++ b/tasks/elasticsearch-Debian.yml @@ -91,7 +91,9 @@ cache_valid_time: 86400 when: es_use_repository register: debian_elasticsearch_install_from_repo - notify: restart elasticsearch + notify: + - restart elasticsearch + - reload systemd configuration environment: ES_PATH_CONF: "{{ es_conf_dir }}" @@ -113,6 +115,8 @@ state: present when: not es_use_repository register: elasticsearch_install_from_package - notify: restart elasticsearch + notify: + - restart elasticsearch + - reload systemd configuration environment: ES_PATH_CONF: "{{ es_conf_dir }}" diff --git a/tasks/elasticsearch-RedHat.yml b/tasks/elasticsearch-RedHat.yml index f2ff9618..6d0100cf 100644 --- a/tasks/elasticsearch-RedHat.yml +++ b/tasks/elasticsearch-RedHat.yml @@ -47,7 +47,9 @@ allow_downgrade: '{{ allow_downgrade }}' when: es_use_repository and not ansible_check_mode register: redhat_elasticsearch_install_from_repo - notify: restart elasticsearch + notify: + - restart elasticsearch + - reload systemd configuration until: redhat_elasticsearch_install_from_repo.rc == 0 retries: 5 delay: 10 @@ -65,4 +67,6 @@ state: present when: not es_use_repository register: elasticsearch_install_from_package - notify: restart elasticsearch + notify: + - restart elasticsearch + - reload systemd configuration