Target block device.
If yes, allows to create new filesystem on devices that already has filesystem.
File System type to be created.
reiserfs support was added in 2.2.
List of options to be passed to mkfs command.
(added in 2.0)
If yes, if the block device and filessytem size differ, grow the filesystem into the space. Note, XFS Will only grow if mounted.
# Create a ext2 filesystem on /dev/sdb1. - filesystem: fstype: ext2 dev: /dev/sdb1 # Create a ext4 filesystem on /dev/sdb1 and check disk blocks. - filesystem: fstype: ext4 dev: /dev/sdb1 opts: -cc
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.