-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
I accidentally executed a playbook using the storage role where I did not have a device defined. Would it be good to detect very early that a device name is NULL or invalid before executing so much of the logic? Below is the snippet from my playbook:
- name: Configure Image Builder Storage
include_role:
name: linux-system-roles.storage
vars:
use_partitions: false
storage_pools:
- name: image_builder
disks: [''] # something like vdb
# type: lvm
state: present
volumes:
- name: composer
size: "19.5G"
# type: lvm
# fs_type: xfs
fs_label: "imgbldr"
mount_point: '/var/lib/lorax/composer'
when: CONFIG_STORAGEMetadata
Metadata
Assignees
Labels
No labels