feat: initial commit

This commit is contained in:
Simon Cornet 2025-05-30 15:04:18 +02:00
commit 5f0f242ab9
14 changed files with 322 additions and 0 deletions

View file

@ -0,0 +1,29 @@
---
# enable ceph maintenance mode
- name: "enable ceph maintenance mode"
block:
# set ceph osd noout settings
- name: "set ceph noout"
ansible.builtin.shell:
cmd: "sudo ceph osd set noout"
changed_when: false
failed_when: "ceph_noout_result.rc != 0"
register: "ceph_noout_result"
# set ceph osd nobackfill settings
- name: "set ceph nobackfill"
ansible.builtin.shell:
cmd: "sudo ceph osd set nobackfill"
changed_when: false
failed_when: "ceph_nobackfill_result.rc != 0"
register: "ceph_nobackfill_result"
# set ceph osd norebalance settings
- name: "set ceph norebalance"
ansible.builtin.shell:
cmd: "sudo ceph osd set norebalance"
changed_when: false
failed_when: "ceph_norebalance_result.rc != 0"
register: "ceph_norebalance_result"