mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 15:41:22 -07:00
parent
bc99432f89
commit
eaa5e07b28
247 changed files with 7318 additions and 7375 deletions
|
@ -64,8 +64,8 @@
|
|||
assert:
|
||||
that: "inactive_by_option_vg_autoact_status_result.stdout | length == 0"
|
||||
always:
|
||||
- name: Cleanup vg_autoact_test
|
||||
lvg:
|
||||
state: absent
|
||||
vg: vg_autoact_test
|
||||
force: true
|
||||
- name: Cleanup vg_autoact_test
|
||||
lvg:
|
||||
state: absent
|
||||
vg: vg_autoact_test
|
||||
force: true
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
- name: Assert the testvg size is 33554432B
|
||||
assert:
|
||||
that:
|
||||
- "'33554432B' == cmd_result.stdout"
|
||||
that:
|
||||
- "'33554432B' == cmd_result.stdout"
|
||||
|
||||
- name: Increases size in file
|
||||
command: "dd if=/dev/zero bs=8MiB count=1 of={{ remote_tmp_dir }}/img1 conv=notrunc oflag=append"
|
||||
|
@ -25,14 +25,14 @@
|
|||
|
||||
- name: "Reruns lvg with pvresize:no"
|
||||
lvg:
|
||||
vg: testvg
|
||||
pvs: "{{ loop_device1 }}"
|
||||
pvresize: false
|
||||
vg: testvg
|
||||
pvs: "{{ loop_device1 }}"
|
||||
pvresize: false
|
||||
register: cmd_result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- cmd_result is not changed
|
||||
- cmd_result is not changed
|
||||
|
||||
- name: Gets current vg size
|
||||
shell: vgs -v testvg -o pv_size --noheading --units b | xargs
|
||||
|
@ -40,21 +40,21 @@
|
|||
|
||||
- name: Assert the testvg size is still 33554432B
|
||||
assert:
|
||||
that:
|
||||
- "'33554432B' == cmd_result.stdout"
|
||||
that:
|
||||
- "'33554432B' == cmd_result.stdout"
|
||||
|
||||
- name: "Reruns lvg with pvresize:yes and check_mode:yes"
|
||||
lvg:
|
||||
vg: testvg
|
||||
pvs: "{{ loop_device1 }}"
|
||||
pvresize: true
|
||||
vg: testvg
|
||||
pvs: "{{ loop_device1 }}"
|
||||
pvresize: true
|
||||
check_mode: true
|
||||
register: cmd_result
|
||||
|
||||
- name: Assert that the module returned the state was changed
|
||||
assert:
|
||||
that:
|
||||
- cmd_result is changed
|
||||
- cmd_result is changed
|
||||
|
||||
- name: Gets current vg size
|
||||
shell: vgs -v testvg -o pv_size --noheading --units b | xargs
|
||||
|
@ -62,14 +62,14 @@
|
|||
|
||||
- name: Assert the testvg size is still 33554432B
|
||||
assert:
|
||||
that:
|
||||
- "'33554432B' == cmd_result.stdout"
|
||||
that:
|
||||
- "'33554432B' == cmd_result.stdout"
|
||||
|
||||
- name: "Reruns lvg with pvresize:yes"
|
||||
lvg:
|
||||
vg: testvg
|
||||
pvs: "{{ loop_device1 }}"
|
||||
pvresize: true
|
||||
vg: testvg
|
||||
pvs: "{{ loop_device1 }}"
|
||||
pvresize: true
|
||||
|
||||
- name: Gets current vg size
|
||||
shell: vgs -v testvg -o pv_size --noheading --units b | xargs
|
||||
|
@ -77,5 +77,5 @@
|
|||
|
||||
- name: Assert the testvg size is now 41943040B
|
||||
assert:
|
||||
that:
|
||||
- "'41943040B' == cmd_result.stdout"
|
||||
that:
|
||||
- "'41943040B' == cmd_result.stdout"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue