filesystem

Collection: community.general

Full Name: parallax.community.general.filesystem

Aliases: community.general.filesystem, filesystem

Synopsis

Create and grow filesystems on block devices

Parameters

NameTypeRequiredDefaultDescription
devstringyesTarget block device
fstypestringyesFilesystem type to create (e.g. ext4, xfs, btrfs)
forceboolfalseForce filesystem creation even if one already exists
resizefsboolfalseGrow the filesystem to fill the block device
optsstringAdditional options to pass to mkfs
statestringpresentState of the filesystem Choices: present, absent

Example

- name: Create an ext4 filesystem on the data volume
  filesystem:
    dev: /dev/sdb1
    fstype: ext4
    resizefs: true
    state: present