Powervault validation when linear storage is chosen
- powervault_me4_slurm_volume_name | length < 30
msg: "{{ system_name_wrong }}"
-- name: Check if disk name has space
+- name: Assert disk group name given if pool type is linear
+ assert:
+ that:
+ - powervault_me4_disk_group_name| length > 1
+ msg: "{{ system_name_wrong }}"
+ when: powervault_me4_pool_type | lower == "linear"
+
+- name: Check if disk group name has space
shell: echo {{ powervault_me4_disk_group_name }} | grep '\s' -c
register: disk_count
when: powervault_me4_disk_group_name | length > 1
ignore_errors: true
tags: install
-- name: Assert if disk name has space
+- name: Assert if disk group name has space
assert:
that:
- disk_count.stdout == "0"
- - powervault_me4_disk_group_name | length > 1
- powervault_me4_disk_group_name | length < 30
msg: "{{ system_name_wrong }}"
+ when: powervault_me4_disk_group_name | length > 1
- name: Assert snmp notification level
assert:
that:
- powervault_me4_pool == "a" or powervault_me4_pool == "A" or powervault_me4_pool == "b" or powervault_me4_pool == "B"
msg: "{{ wrong_pool }}"
- when: powervault_me4_pool_type == "virtual"
+ when: powervault_me4_pool_type | lower == "virtual"
- name: Check pool type
assert:
