parted

Collection: community.general

Full Name: parallax.community.general.parted

Aliases: community.general.parted, parted

Synopsis

Manage parted

Parameters

NameTypeRequiredDefaultDescription
devicestringyesThe block device to be partitioned
numberint0The partition number to work with
statestringinfoWhether to create or delete a partition Choices: info, present, absent
part_typestringprimaryThe partition type Choices: primary, extended, logical
fs_typestringThe filesystem type for the partition
part_startstring0%Where the partition will start
part_endstring100%Where the partition will end
labelstringmsdosThe disk label type to use Choices: msdos, gpt
namestringThe name for the partition (GPT only)
flagsstringComma-separated list of flags to set on the partition
alignstringoptimalAlignment for newly created partitions
unitstringKiBUnit for displaying partition info
resizeboolfalseWhether to resize the partition

Example

- name: Example parted task
  parted:
    device: <your_device>