From dd135920345c4984e9c480c8388a2d9f8f68ddef Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Sat, 5 Jul 2025 00:17:00 -0500 Subject: [PATCH] lvg: add docs example for preserving existing PVs in a volume group using `remove_extra_pvs: false` (#10336) --- plugins/modules/lvg.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/modules/lvg.py b/plugins/modules/lvg.py index b16cdd87a2..36ba2c4c3e 100644 --- a/plugins/modules/lvg.py +++ b/plugins/modules/lvg.py @@ -146,6 +146,13 @@ EXAMPLES = r""" state: active vg: vg.services +- name: Add new PVs to volume group without removing existing ones + community.general.lvg: + vg: vg.services + pvs: /dev/sdb1,/dev/sdc1 + remove_extra_pvs: false + state: present + - name: Reset a volume group UUID community.general.lvg: state: inactive