Loading tasks/proxmox/update-node.yaml +9 −6 Original line number Diff line number Diff line Loading @@ -3,7 +3,8 @@ # enter maintenance mode - name: "enter maintenance mode" ansible.builtin.shell: cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }}" cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }}" changed_when: false failed_when: "maintenance_result.rc != 0" register: "maintenance_result" Loading @@ -11,7 +12,8 @@ # wait for host to be empty - name: "wait for host to be empty" ansible.builtin.shell: cmd: "set -o pipefail; \ cmd: "set -o pipefail; \ sudo pvesh get /cluster/resources | \ grep {{ inventory_hostname_short }} | \ egrep -v \"node/pve|storage/pve|sdn/pve|template\"" Loading Loading @@ -51,7 +53,8 @@ # exit maintenance mode - name: "exit maintenance mode" ansible.builtin.shell: cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}" cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}" changed_when: false delay: 10 failed_when: "maintenance_exit_result.rc != 0" Loading tasks/ceph/exit-maint.yaml +3 −3 File changed.Contains only whitespace changes. Show changes Loading
tasks/proxmox/update-node.yaml +9 −6 Original line number Diff line number Diff line Loading @@ -3,7 +3,8 @@ # enter maintenance mode - name: "enter maintenance mode" ansible.builtin.shell: cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }}" cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }}" changed_when: false failed_when: "maintenance_result.rc != 0" register: "maintenance_result" Loading @@ -11,7 +12,8 @@ # wait for host to be empty - name: "wait for host to be empty" ansible.builtin.shell: cmd: "set -o pipefail; \ cmd: "set -o pipefail; \ sudo pvesh get /cluster/resources | \ grep {{ inventory_hostname_short }} | \ egrep -v \"node/pve|storage/pve|sdn/pve|template\"" Loading Loading @@ -51,7 +53,8 @@ # exit maintenance mode - name: "exit maintenance mode" ansible.builtin.shell: cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}" cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}" changed_when: false delay: 10 failed_when: "maintenance_exit_result.rc != 0" Loading