Files
gitlab-mirror/roles/mkfs
2025-12-18 17:16:02 +04:00
..
2025-12-08 12:20:01 +04:00
2025-12-08 12:20:01 +04:00
2025-12-18 10:41:25 +03:00
2025-12-18 10:41:25 +03:00
2025-12-08 12:20:01 +04:00
2025-12-08 12:20:01 +04:00

mkfs

Create a filesystem on the target device (thinly wraps community.general.filesystem module).

Requirements

Uses specific tools related to the fstype for creating or resizing a filesystem (e2fsprogs, xfsprogs, etc.).

Uses generic tools mostly related to the OS, like blkid.

Role Variables

  • mkfs_device: (string) device that the filesystem should be created on
  • mkfs_type: (string) type of the filesystem to be created
  • mkfs_opts: (string) a list of options to be passed to mkfs (not a YAML array)
  • mkfs_state: (string) absent or present
  • mkfs_force: (boolean) overwrite an existing fs if there is one (default: false)

Dependencies

None

Example Playbook

See: converge.yml

License

BSD

Author Information

corvus-migratorius@proton.me