Hi Team
I need to verify if all disk size equal
I have n number of disk. I have written a loop that gives size of disk. Now
how do I verify all disks are equal size?
- name: Check the size of the disk
shell: |
bootinfo -s "{{ item }}"
with_items: "{{ rootvg.stdout_
add those numbers to a list, apply the 'unique' filter, then check the length.
If it is 1, then the numbers were all the same.
If it is greater than 2, then there were differences.
On Thu, 17 Sep 2020 at 14:23, T. JENISHA wrote:
>
> Hi Team
>
> I need to verify if all disk size equal
>
> I have n
On Thursday 17 September 2020 at 15:59:16, Dick Visser wrote:
> add those numbers to a list, apply the 'unique' filter, then check the
> length. If it is 1, then the numbers were all the same.
> If it is greater than 2, then there were differences.
I'm a pedant, so I'll suggest that "if it's grea