- require_in: | - require_in: | ||||
- mount: {{ volume.mount.path }} | - mount: {{ volume.mount.path }} | ||||
{%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %} | {%- 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 %} | ||||
{%- endif %} | {%- endif %} | ||||
lv01: | lv01: | ||||
size: 5M | size: 5M | ||||
mount: | 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: | disk1: | ||||
enabled: true | enabled: true | ||||
device: /dev/loop_dev4 | device: /dev/loop_dev4 |