ceph-ansible/roles/ceph-validate/tasks/check_devices.yml

17 lines
439 B
YAML
Raw Normal View History

---
- name: devices validation
when: devices is defined
block:
- name: validate devices is actually a device
parted:
device: "{{ item }}"
unit: MiB
register: devices_parted
with_items: "{{ devices }}"
- name: fail if one of the devices is not a device
fail:
msg: "{{ item }} is not a block special file!"
when: item.failed
with_items: "{{ devices_parted.results }}"