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 onmkfs_type: (string) type of the filesystem to be createdmkfs_opts: (string) a list of options to be passed tomkfs(not a YAML array)mkfs_state: (string)absentorpresentmkfs_force: (boolean) overwrite an existing fs if there is one (default:false)
Dependencies
None
Example Playbook
See: converge.yml
License
BSD