I'm not much of a python developer, but i'm using ansible now for upgrading 
IOS devices.

One thing that would be helpful would if ios_facts could also gather the 
flash memory total and free bytes:

EX:
Directory of flash:/

    2  -rwx         916  Jan 29 2019 11:56:49 -06:00  vlan.dat
    3  -rwx    26590208  Dec 18 2018 09:28:36 -06:00  
c2960x-universalk9-mz.152-6.E2.bin
    4  -rwx       14236  Jan 29 2019 17:50:43 -06:00  private-config.text
    5  -rwx    21287936  Jan 16 2019 16:10:33 -06:00  
c2960x-universalk9-mz.152-2.E8.bin
    9  -rwx        8216  Jan 29 2019 11:56:55 -06:00  multiple-fs
    6  -rwx       29835  Jan 29 2019 09:51:58 -06:00  
ansible_backup_running.cfg
    8  -rwx       23655  Jan 29 2019 17:50:43 -06:00  config.text

122185728 bytes total (73838592 bytes free) <=============

Gathering these numbers would be helpful to help determine if there's 
enough free flash memory before attempting to copy the new file into flash.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to