action: "zap"
environment:
CEPH_VOLUME_DEBUG: "{{ ceph_volume_debug }}"
- with_items: "{{ lvm_volumes }}"
- when:
- - lvm_volumes | default([]) | length > 0
- - ceph_volume_present.rc == 0
+ with_items: "{{ lvm_volumes | default([]) }}"
+ when: ceph_volume_present.rc == 0
- name: zap and destroy osds created by ceph-volume with devices
ceph_volume:
action: "zap"
environment:
CEPH_VOLUME_DEBUG: "{{ ceph_volume_debug }}"
- with_items: "{{ devices | default([]) }}"
- when:
- - devices | default([]) | length > 0
- - ceph_volume_present.rc == 0
+ with_items:
+ - "{{ devices | default([]) }}"
+ - "{{ dedicated_devices | default([]) }}"
+ - "{{ bluestore_wal_devices | default([]) }}"
+ when: ceph_volume_present.rc == 0
- name: get ceph block partitions
shell: |
CEPH_VOLUME_DEBUG: "{{ ceph_volume_debug }}"
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
- with_items: "{{ devices | default([]) }}"
- when: devices | default([]) | length > 0
+ with_items:
+ - "{{ devices | default([]) }}"
+ - "{{ dedicated_devices | default([]) }}"
+ - "{{ bluestore_wal_devices | default([]) }}"
- name: remove ceph osd service
file: