Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.lvg_rename.
New in community.general 7.1.0
vgchange command.Parameter | Comments |
|---|---|
vg string / required | The name or UUID of the source VG. See |
vg_new string / required | The new name of the VG. See |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: full | Will return details on what has changed (or possibly needs changing in |
Note
fstab entries or boot parameters.See also
Configure LVM volume groups.
- 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
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/lvg_rename_module.html