fix: remove reboot condition

This commit is contained in:
2026-06-03 20:59:34 +00:00
parent 7362282a0e
commit 11cc7fbc97

View File

@@ -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