Loading tasks/main.yaml +4 −3 Original line number Diff line number Diff line Loading @@ -8,12 +8,13 @@ # collect proxmox cluster nodes - name: "collect proxmox cluster nodes" set_fact: leader_node: "{{ groups['proxmox'] | default([]) | first | default('') }}" first_node: "{{ groups['proxmox'] | default([]) | first | default('') }}" last_node: "{{ groups['proxmox'] | default([]) | last | default('') }}" # enter ceph maintenance mode - name: "set ceph enter maintenance mode" ansible.builtin.include_tasks: "ceph/enter-maint.yaml" when: "inventory_hostname == leader_node" when: "inventory_hostname == first_node" # update proxmox cluster - name: "update proxmox cluster nodes" Loading @@ -22,4 +23,4 @@ # exit ceph maintenance mode - name: "exit ceph maintenance mode" ansible.builtin.include_tasks: "ceph/exit-maint.yaml" when: "inventory_hostname == leader_node" when: "inventory_hostname == last_node" Loading
tasks/main.yaml +4 −3 Original line number Diff line number Diff line Loading @@ -8,12 +8,13 @@ # collect proxmox cluster nodes - name: "collect proxmox cluster nodes" set_fact: leader_node: "{{ groups['proxmox'] | default([]) | first | default('') }}" first_node: "{{ groups['proxmox'] | default([]) | first | default('') }}" last_node: "{{ groups['proxmox'] | default([]) | last | default('') }}" # enter ceph maintenance mode - name: "set ceph enter maintenance mode" ansible.builtin.include_tasks: "ceph/enter-maint.yaml" when: "inventory_hostname == leader_node" when: "inventory_hostname == first_node" # update proxmox cluster - name: "update proxmox cluster nodes" Loading @@ -22,4 +23,4 @@ # exit ceph maintenance mode - name: "exit ceph maintenance mode" ansible.builtin.include_tasks: "ceph/exit-maint.yaml" when: "inventory_hostname == leader_node" when: "inventory_hostname == last_node"