mirror of https://github.com/ceph/ceph-ansible.git
ceph-validate: do not resolve devices
This is already done in the ceph-facts role.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 0df99dda8d
)
pull/6677/head
parent
4f89cdcd45
commit
2020b1310c
|
@ -33,26 +33,10 @@
|
||||||
when:
|
when:
|
||||||
- item.skipped is undefined
|
- item.skipped is undefined
|
||||||
|
|
||||||
- name: devices variable's tasks related
|
|
||||||
when:
|
|
||||||
- devices is defined
|
|
||||||
- devices | length > 0
|
|
||||||
block:
|
|
||||||
- name: resolve devices in devices
|
|
||||||
command: "readlink -f {{ item }}"
|
|
||||||
changed_when: false
|
|
||||||
register: devices_resolved
|
|
||||||
with_items: "{{ devices }}"
|
|
||||||
|
|
||||||
- name: set_fact devices_resolved
|
|
||||||
set_fact:
|
|
||||||
_devices: "{{ _devices | default([]) + [item.stdout] }}"
|
|
||||||
with_items: "{{ devices_resolved.results }}"
|
|
||||||
|
|
||||||
- name: fail if root_device is passed in lvm_volumes or devices
|
- name: fail if root_device is passed in lvm_volumes or devices
|
||||||
fail:
|
fail:
|
||||||
msg: "{{ root_device }} found in either lvm_volumes or devices variable"
|
msg: "{{ root_device }} found in either lvm_volumes or devices variable"
|
||||||
when: root_device in lvm_volumes_data_devices | default([]) or root_device in _devices | default([])
|
when: root_device in lvm_volumes_data_devices | default([]) or root_device in devices | default([])
|
||||||
|
|
||||||
- name: check devices are block devices
|
- name: check devices are block devices
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in New Issue