Skip to content

Commit 7bebba7

Browse files
committed
Remove reboot part of upgrade playbook
1 parent ec218de commit 7bebba7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Diff for: roles/elasticsearch/tasks/elasticsearch-rolling-upgrade.yml

-17
Original file line numberDiff line numberDiff line change
@@ -140,23 +140,6 @@
140140
ansible.builtin.apt:
141141
upgrade: dist # upgrade all packages to latest version
142142

143-
# REBOOT machine after Upgrade
144-
- name: Check if reboot is required
145-
ansible.builtin.register: reboot_required_file
146-
stat:
147-
path: /var/run/reboot-required
148-
149-
- name: Restart machine
150-
ansible.builtin.reboot:
151-
msg: "Reboot initiated by Ansible to update system libs/kernel as needed"
152-
when: reboot_required_file.stat.exists | bool
153-
154-
- name: Waiting for machine to come back
155-
ansible.builtin.wait_for_connection:
156-
delay: 10
157-
connect_timeout: 300
158-
when: reboot_required_file.stat.exists | bool
159-
160143
- name: Start elasticsearch
161144
ansible.builtin.service:
162145
name: elasticsearch

0 commit comments

Comments
 (0)