mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 05:04:22 -07:00
Updated assert conditions
This commit is contained in:
parent
b28baac61d
commit
8697026101
2 changed files with 10 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
- name: Unmounting LV lv_tmp_test
|
- name: Unmounting temp file system
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
fstab: '{{ remote_tmp_dir }}/fstab'
|
fstab: '{{ remote_tmp_dir }}/fstab'
|
||||||
path: '{{ remote_tmp_dir }}/tmp_mount'
|
path: '{{ remote_tmp_dir }}/tmp_mount'
|
||||||
|
|
|
@ -45,6 +45,9 @@
|
||||||
ansible.builtin.command: pvs --noheadings -o pv_size --units M {{ loop_device_02.stdout }}
|
ansible.builtin.command: pvs --noheadings -o pv_size --units M {{ loop_device_02.stdout }}
|
||||||
register: pv_size_output_02
|
register: pv_size_output_02
|
||||||
|
|
||||||
|
- name: Showing current device mapper status
|
||||||
|
ansible.builtin.shell: dmsetup ls
|
||||||
|
|
||||||
- name: Making sure volume group testvg does not exist
|
- name: Making sure volume group testvg does not exist
|
||||||
community.general.lvg:
|
community.general.lvg:
|
||||||
vg: testvg
|
vg: testvg
|
||||||
|
@ -88,9 +91,9 @@
|
||||||
- pv_creation_result_01.changed == true
|
- pv_creation_result_01.changed == true
|
||||||
- pv_creation_result_02.changed == true
|
- pv_creation_result_02.changed == true
|
||||||
- vg_creation_result.changed == true
|
- vg_creation_result.changed == true
|
||||||
- (pv_size_output_01.stdout | trim | regex_replace('M', '') | float) > 95
|
- (pv_size_output_01.stdout | trim | regex_replace('M', '') | float) > 450
|
||||||
- (pv_size_output_01.stdout | trim | regex_replace('M', '') | float) < 120
|
- (pv_size_output_01.stdout | trim | regex_replace('M', '') | float) < 600
|
||||||
- (pv_size_output_02.stdout | trim | regex_replace('M', '') | float) > 190
|
- (pv_size_output_02.stdout | trim | regex_replace('M', '') | float) > 950
|
||||||
- (pv_size_output_02.stdout | trim | regex_replace('M', '') | float) < 220
|
- (pv_size_output_02.stdout | trim | regex_replace('M', '') | float) < 1100
|
||||||
- "'created' in pv_creation_result_01.msg"
|
- "'created' in pv_creation_result_01.msg"
|
||||||
- "'created' in pv_creation_result_02.msg"
|
- "'created' in pv_creation_result_02.msg"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue