16 lines
365 B
YAML
16 lines
365 B
YAML
|
- name: Create volume group on disk device
|
||
|
lvg:
|
||
|
vg: testvg
|
||
|
pvs: "{{ loop_device1.stdout }}"
|
||
|
|
||
|
- name: Create the volume group again to verify idempotence
|
||
|
lvg:
|
||
|
vg: testvg
|
||
|
pvs: "{{ loop_device1.stdout }}"
|
||
|
register: repeat_vg_create
|
||
|
|
||
|
- name: Do all assertions to verify expected results
|
||
|
assert:
|
||
|
that:
|
||
|
- repeat_vg_create is not changed
|