filesystem

Collection: community.general

Full Name: parallax.community.general.filesystem

Aliases: community.general.filesystem, filesystem

Synopsis

Manage filesystem

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: Example filesystem task
  filesystem:
    dev: <your_dev>
    fstype: <your_fstype>