parted
Collection: community.general
Full Name: parallax.community.general.parted
Aliases: community.general.parted, parted
Synopsis
Manage parted
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| device | string | yes | The block device to be partitioned | |
| number | int | 0 | The partition number to work with | |
| state | string | info | Whether to create or delete a partition Choices: info, present, absent | |
| part_type | string | primary | The partition type Choices: primary, extended, logical | |
| fs_type | string | The filesystem type for the partition | ||
| part_start | string | 0% | Where the partition will start | |
| part_end | string | 100% | Where the partition will end | |
| label | string | msdos | The disk label type to use Choices: msdos, gpt | |
| name | string | The name for the partition (GPT only) | ||
| flags | string | Comma-separated list of flags to set on the partition | ||
| align | string | optimal | Alignment for newly created partitions | |
| unit | string | KiB | Unit for displaying partition info | |
| resize | bool | false | Whether to resize the partition |
Example
- name: Example parted task
parted:
device: <your_device>