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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1d5c324b-ffc9-4f1c-87e8-7348681e7b99n%40googlegroups.com.

Reply via email to