@@ -38,7 +38,7 @@ lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}: | |||
- require_in: | |||
- mount: {{ volume.mount.path }} | |||
{%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %} | |||
- mkfs_{{ volume.mount.device}}: | |||
- cmd: mkfs_{{ volume.mount.device}} | |||
{%- endif %} | |||
{%- endif %} | |||
@@ -36,7 +36,20 @@ linux: | |||
lv01: | |||
size: 5M | |||
mount: | |||
path: /mnt | |||
device: /dev/vg0/lv01 | |||
path: /mnt/lv01 | |||
lv02: | |||
size: 5M | |||
mount: | |||
device: /dev/vg0/lv02 | |||
path: /mnt/lv02 | |||
file_system: ext4 | |||
lv03: | |||
size: 5M | |||
mount: | |||
device: /dev/vg0/lv03 | |||
path: /mnt/lv03 | |||
file_system: xfs | |||
disk1: | |||
enabled: true | |||
device: /dev/loop_dev4 |