shrink-osd: use command instead of ceph_volume_simple_scan

This module isn't available in RHCS 4

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2071035

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/7307/head
Guillaume Abrioux 2022-07-18 10:11:27 +02:00
parent f8e969c890
commit 4661c5679f
1 changed files with 2 additions and 3 deletions

View File

@ -123,11 +123,10 @@
with_items: "{{ _lvm_list_data.results }}"
- name: refresh /etc/ceph/osd files non containerized_deployment
ceph_volume_simple_scan:
cluster: "{{ cluster }}"
force: true
command: ceph-volume simple scan --force
delegate_to: "{{ item }}"
loop: "{{ host_list }}"
changed_when: false
when: not containerized_deployment | bool
- name: refresh /etc/ceph/osd files containerized_deployment