mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
lvol: Fix pct of origin (#7053)
* add support for percentage of origin size for creating snapshot volumes * add changelog fragment * add pull request link Co-authored-by: Felix Fontein <felix@fontein.de> * fix what's not idempotent --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
5988b9acea
commit
a0c67a8894
5 changed files with 28 additions and 16 deletions
|
@ -17,6 +17,16 @@
|
|||
lv: "{{ item }}"
|
||||
size: 2m
|
||||
|
||||
- name: Create snapshot volumes of origin logical volumes
|
||||
loop:
|
||||
- lv1
|
||||
- lv2
|
||||
lvol:
|
||||
vg: testvg
|
||||
lv: "{{ item }}"
|
||||
snapshot: "{{ item }}_snap"
|
||||
size: 50%ORIGIN
|
||||
|
||||
- name: Collect all lv active status in testvg
|
||||
shell: vgs -olv_active --noheadings testvg | xargs -n1
|
||||
register: initial_lv_status_result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue