Copy from GitHub repo

This commit is contained in:
Dmitry Vlasov
2020-08-12 00:02:27 +03:00
parent c447c45bbb
commit 42ae66e3ec
90 changed files with 5632 additions and 0 deletions
@@ -0,0 +1,24 @@
---
- hosts: bonchvisors
serial: 11
remote_user: cephadmin
become: true
become_user: root
become_method: sudo
tasks:
- name: detect osd number in array
shell: systemctl list-units --type=service --all | grep ceph-volume | awk '{print $1}'
args:
executable: /bin/bash
register: volume_service
- name: delete osd
systemd:
enabled: no
name: "{{item}}"
loop: "{{volume_service.stdout_lines}}"
when: volume_service.stdout != ""