feat: initial commit
This commit is contained in:
commit
5f0f242ab9
14 changed files with 322 additions and 0 deletions
25
tasks/main.yaml
Normal file
25
tasks/main.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
|
||||
# update cluster
|
||||
- name: "update cluster"
|
||||
tags: "update-cluster"
|
||||
block:
|
||||
|
||||
# collect proxmox cluster nodes
|
||||
- name: "collect proxmox cluster nodes"
|
||||
set_fact:
|
||||
leader_node: "{{ groups['proxmox'] | default([]) | first | default('') }}"
|
||||
|
||||
# enter ceph maintenance mode
|
||||
- name: "set ceph enter maintenance mode"
|
||||
ansible.builtin.include_tasks: "ceph/enter-maint.yaml"
|
||||
when: "inventory_hostname == leader_node"
|
||||
|
||||
# update proxmox cluster
|
||||
- name: "update proxmox cluster nodes"
|
||||
ansible.builtin.include_tasks: "proxmox/update-node.yaml"
|
||||
|
||||
# exit ceph maintenance mode
|
||||
- name: "exit ceph maintenance mode"
|
||||
ansible.builtin.include_tasks: "ceph/exit-maint.yaml"
|
||||
when: "inventory_hostname == leader_node"
|
||||
Loading…
Add table
Add a link
Reference in a new issue