20 lines
478 B
YAML
20 lines
478 B
YAML
---
|
|
|
|
# enable ceph maintenance mode
|
|
- name: "enable ceph maintenance mode"
|
|
block:
|
|
|
|
# set ceph maintenance flags
|
|
- name: "set ceph maintenance flags"
|
|
ansible.builtin.shell:
|
|
cmd: "ceph osd set {{ item }}"
|
|
loop:
|
|
- "norecover"
|
|
- "norebalance"
|
|
- "nobackfill"
|
|
- "noscrub"
|
|
- "nodeep-scrub"
|
|
- "noout"
|
|
register: "ceph_flag_result"
|
|
changed_when: false
|
|
failed_when: "ceph_flag_result.rc != 0"
|