proxmox/tasks/ceph/exit-maint.yaml

20 lines
480 B
YAML

---
# exit ceph maintenance mode
- name: "exit ceph maintenance mode"
block:
# unset ceph maintenance flags
- name: "unset ceph maintenance flags"
ansible.builtin.shell:
cmd: "ceph osd unset {{ item }}"
loop:
- "norecover"
- "norebalance"
- "nobackfill"
- "noscrub"
- "nodeep-scrub"
- "noout"
register: "ceph_flag_result"
changed_when: false
failed_when: "ceph_flag_result.rc != 0"