mirror of https://github.com/ceph/ceph-ansible.git
infrastructure playbooks: ensure nvme_device is defined in lv-create.yml
Signed-off-by: Ali Maredia <amaredia@redhat.com>pull/3186/head
parent
5ab90b358c
commit
219fa8f919
|
@ -27,6 +27,12 @@
|
|||
file: lv_vars.yaml
|
||||
failed_when: false
|
||||
|
||||
# ensure nvme_device is set
|
||||
- name: fail if nvme_device is not undefined
|
||||
fail:
|
||||
msg: "nvme_device has not been set by the user"
|
||||
when: nvme_device is undefined or nvme_device == 'dummy'
|
||||
|
||||
# need to check if lvm2 is installed
|
||||
- name: install lvm2
|
||||
package:
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# This can be done by running `wipefs -a $device_name`.
|
||||
|
||||
# Path of nvme device primed for LV creation for journals and data. Only one NVMe device is allowed at a time. Providing a list will not work in this case.
|
||||
nvme_device: /dev/nvme0n1
|
||||
nvme_device: dummy
|
||||
|
||||
# Path of hdd devices designated for LV creation.
|
||||
hdd_devices:
|
Loading…
Reference in New Issue