diff --git a/ansible/proxmox/update_proxmox.yml b/ansible/proxmox/update_proxmox.yml index b54b8a3..7cfeb81 100644 --- a/ansible/proxmox/update_proxmox.yml +++ b/ansible/proxmox/update_proxmox.yml @@ -117,30 +117,23 @@ changed_when: false ########################################################## - # Check reboot with Ceph rebalancing disabled + # Reboot with Ceph rebalancing disabled ########################################################## - - name: Check reboot requirement - ansible.builtin.stat: - path: /var/run/reboot-required - register: reboot_required + - name: Disable Ceph rebalancing + ansible.builtin.command: ceph osd set noout - - when: reboot_required.stat.exists - block: - - name: Disable Ceph rebalancing - ansible.builtin.command: ceph osd set noout + - name: Reboot node + ansible.builtin.reboot: + reboot_timeout: 900 + post_reboot_delay: 30 - - name: Reboot node - ansible.builtin.reboot: - reboot_timeout: 900 - post_reboot_delay: 30 - - - name: Wait for connection - ansible.builtin.wait_for_connection: - timeout: 600 - - - name: Enable Ceph rebalancing - ansible.builtin.command: ceph osd unset noout + - name: Wait for connection + ansible.builtin.wait_for_connection: + timeout: 600 + + - name: Enable Ceph rebalancing + ansible.builtin.command: ceph osd unset noout ########################################################## # Disable maintenance mode