Skip to content

Commit

Permalink
feat: Reload systemd daemon after elasticsearch upgrade (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarasg authored Oct 1, 2024
1 parent 63ec7ba commit da6d4e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions tasks/elasticsearch-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand All @@ -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 }}"
8 changes: 6 additions & 2 deletions tasks/elasticsearch-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit da6d4e4

Please sign in to comment.