This repository has been archived on 2026-11-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openstack-deployment/ansible/playbooks/ceph_remove_volume_orphan_service.yml
T
2020-08-12 00:02:27 +03:00

25 lines
495 B
YAML

---
- 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 != ""