infrastructure playbooks: ensure nvme_device is defined in lv-create.yml

Signed-off-by: Ali Maredia <amaredia@redhat.com>
pull/3186/head
Ali Maredia 2018-10-29 06:01:25 +00:00 committed by mergify[bot]
parent 5ab90b358c
commit 219fa8f919
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -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: