Skip to content

Commit da6d4e4

Browse files
authored
feat: Reload systemd daemon after elasticsearch upgrade (#19)
1 parent 63ec7ba commit da6d4e4

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

tasks/elasticsearch-Debian.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
cache_valid_time: 86400
9292
when: es_use_repository
9393
register: debian_elasticsearch_install_from_repo
94-
notify: restart elasticsearch
94+
notify:
95+
- restart elasticsearch
96+
- reload systemd configuration
9597
environment:
9698
ES_PATH_CONF: "{{ es_conf_dir }}"
9799

@@ -113,6 +115,8 @@
113115
state: present
114116
when: not es_use_repository
115117
register: elasticsearch_install_from_package
116-
notify: restart elasticsearch
118+
notify:
119+
- restart elasticsearch
120+
- reload systemd configuration
117121
environment:
118122
ES_PATH_CONF: "{{ es_conf_dir }}"

tasks/elasticsearch-RedHat.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
allow_downgrade: '{{ allow_downgrade }}'
4848
when: es_use_repository and not ansible_check_mode
4949
register: redhat_elasticsearch_install_from_repo
50-
notify: restart elasticsearch
50+
notify:
51+
- restart elasticsearch
52+
- reload systemd configuration
5153
until: redhat_elasticsearch_install_from_repo.rc == 0
5254
retries: 5
5355
delay: 10
@@ -65,4 +67,6 @@
6567
state: present
6668
when: not es_use_repository
6769
register: elasticsearch_install_from_package
68-
notify: restart elasticsearch
70+
notify:
71+
- restart elasticsearch
72+
- reload systemd configuration

0 commit comments

Comments
 (0)