Need assistance to write script to find free space in all member switches (not just master switch)

Problem: In a stacked switch, ‘ansible_net_filesystems_info’ of ios_facts module only shows total and free space of master switch. It doesn’t show space of member switch. But I need to write a script that will check for certain amount of free space in EVERY member switch before copying ios image.

A workaround idea i have is to execute below command and make ansible store free space of every member switch in a custom variable. Then is it possible to somehow tell ansible to check if the value in variable (free space value listed below) should be higher than 50 MB before copying image?

Or do you have any other suggestion?

sh flash2: | i bytes free

122185728 bytes total (9308672 bytes free)

sh flash3: | i bytes free

122185728 bytes total (9304874 bytes free)

Thanks,

Vikram