--- # configure proxmox - all nodes - name: "configure proxmox - all nodes" hosts: "proxmox" become: true serial: 1 tasks: # configure proxmox cluster - name: "configure proxmox cluster nodes" tags: "configure-cluster" ansible.builtin.import_tasks: "tasks/proxmox/config.yaml" # update proxmox - first node - name: "update proxmox - first node" hosts: "{{ groups['proxmox'] | first }}" become: true tasks: # enter ceph maintenance mode - name: "set ceph enter maintenance mode" tags: "update-cluster" ansible.builtin.import_tasks: "tasks/ceph/enter-maint.yaml" # update proxmox - all nodes - name: "update proxmox - all nodes" hosts: "proxmox" become: true serial: 1 tasks: # update proxmox cluster - name: "update proxmox cluster nodes" tags: "update-cluster" ansible.builtin.import_tasks: "tasks/proxmox/update-node.yaml" # update proxmox - last node - name: "update proxmox - last node" hosts: "{{ groups['proxmox'] | last }}" become: true tasks: # exit ceph maintenance mode - name: "exit ceph maintenance mode" tags: "update-cluster" ansible.builtin.import_tasks: "tasks/ceph/exit-maint.yaml"