community.general.lvg_rename (8.5.0) — module

Renames LVM volume groups

| "added in version" 7.1.0 of community.general"

Authors: Laszlo Szomor (@lszomor)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module renames volume groups using the C(vgchange) command.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Rename a VG by name
  community.general.lvg_rename:
    vg: vg_orig_name
    vg_new: vg_new_name
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Rename a VG by UUID
  community.general.lvg_rename:
    vg_uuid: SNgd0Q-rPYa-dPB8-U1g6-4WZI-qHID-N7y9Vj
    vg_new: vg_new_name

Inputs

    
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

See also