lvol
Collection: community.general
Full Name: parallax.community.general.lvol
Aliases: community.general.lvol, lvol
Synopsis
Manage lvol
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| vg | string | yes | The volume group the logical volume belongs to | |
| lv | string | yes | The name of the logical volume | |
| size | string | The size of the logical volume (e.g. 10g, 512m, 100%FREE) | ||
| state | string | present | State of the logical volume Choices: present, absent | |
| force | bool | false | Force logical volume operations | |
| shrink | bool | true | Whether to shrink the volume if needed | |
| pvs | string | Comma-separated list of physical volumes to use | ||
| thinpool | string | The thin pool volume name when creating thin provisioned volumes | ||
| snapshot | string | The name of the snapshot to create | ||
| opts | string | Additional options to pass to lvcreate | ||
| resizefs | bool | false | Resize the underlying filesystem along with the volume | |
| active | bool | true | Whether the logical volume should be active |
Example
- name: Example lvol task
lvol:
vg: <your_vg>
lv: <your_lv>