proxmox/tasks/ceph/exit-maint.yaml

37 lines
1.1 KiB
YAML

---
# exit ceph maintenance mode
- name: "exit ceph maintenance mode"
block:
# unset ceph osd noout settings
- name: "unset ceph noout"
ansible.builtin.shell:
cmd: "ceph osd unset noout"
changed_when: false
failed_when: "ceph_noout_result.rc != 0"
register: "ceph_noout_result"
# unset ceph osd nobackfill settings
- name: "unset ceph nobackfill"
ansible.builtin.shell:
cmd: "ceph osd unset nobackfill"
changed_when: false
failed_when: "ceph_nobackfill_result.rc != 0"
register: "ceph_nobackfill_result"
# unset ceph osd norebalance settings
- name: "unset ceph norebalance"
ansible.builtin.shell:
cmd: "ceph osd unset norebalance"
changed_when: false
failed_when: "ceph_norebalance_result.rc != 0"
register: "ceph_norebalance_result"
# unset ceph osd norecover settings
- name: "unset ceph norecover"
ansible.builtin.shell:
cmd: "ceph osd unset norecover"
changed_when: false
failed_when: "ceph_norecover_result.rc != 0"
register: "ceph_norecover_result"