fix: remove reboot condition
This commit is contained in:
@@ -117,30 +117,23 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
# Check reboot with Ceph rebalancing disabled
|
# Reboot with Ceph rebalancing disabled
|
||||||
##########################################################
|
##########################################################
|
||||||
|
|
||||||
- name: Check reboot requirement
|
- name: Disable Ceph rebalancing
|
||||||
ansible.builtin.stat:
|
ansible.builtin.command: ceph osd set noout
|
||||||
path: /var/run/reboot-required
|
|
||||||
register: reboot_required
|
|
||||||
|
|
||||||
- when: reboot_required.stat.exists
|
- name: Reboot node
|
||||||
block:
|
ansible.builtin.reboot:
|
||||||
- name: Disable Ceph rebalancing
|
reboot_timeout: 900
|
||||||
ansible.builtin.command: ceph osd set noout
|
post_reboot_delay: 30
|
||||||
|
|
||||||
- name: Reboot node
|
- name: Wait for connection
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.wait_for_connection:
|
||||||
reboot_timeout: 900
|
timeout: 600
|
||||||
post_reboot_delay: 30
|
|
||||||
|
|
||||||
- name: Wait for connection
|
- name: Enable Ceph rebalancing
|
||||||
ansible.builtin.wait_for_connection:
|
ansible.builtin.command: ceph osd unset noout
|
||||||
timeout: 600
|
|
||||||
|
|
||||||
- name: Enable Ceph rebalancing
|
|
||||||
ansible.builtin.command: ceph osd unset noout
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
# Disable maintenance mode
|
# Disable maintenance mode
|
||||||
|
|||||||
Reference in New Issue
Block a user