community / community.general / 8.5.0 / module / lvg_rename Renames LVM volume groups | "added in version" 7.1.0 of community.general" Authors: Laszlo Szomor (@lszomor)community.general.lvg_rename (8.5.0) — module
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
This module renames volume groups using the C(vgchange) command.
- name: Rename a VG by name community.general.lvg_rename: vg: vg_orig_name vg_new: vg_new_name
- name: Rename a VG by UUID community.general.lvg_rename: vg_uuid: SNgd0Q-rPYa-dPB8-U1g6-4WZI-qHID-N7y9Vj vg_new: vg_new_name
vg: description: - The name or UUID of the source VG. - See V(vgrename(8\)) for valid values. required: true type: str vg_new: description: - The new name of the VG. - See V(lvm(8\)) for valid names. required: true type: str