Hi

I would like to create report for free partition size under "ansible_mounts"

       "ansible_mounts": [ 
           { 
               "block_available": 3911145, 
               "block_size": 4096, 
               "block_total": 4452864, 
               "block_used": 541719, 
               "device": "/dev/mapper/vg_root-lv_root", 
               "fstype": "xfs", 
               "inode_available": 8871855, 
               "inode_total": 8910848, 
               "inode_used": 38993, 
              * "mount": "/", *
               "options": "rw,seclabel,relatime,attr2,inode64,noquota", 
               *"size_available": 16020049920, *
               "size_total": 18238930944, 
               "uuid": "e2968252-bcd8-45ac-9604-714aa932deb9" 
           }, 
           { 
               "block_available": 222270, 
               "block_size": 4096, 
               "block_total": 259584, 
               "block_used": 37314, 
               "device": "/dev/sda1",
               "fstype": "xfs", 
               "inode_available": 523988, 
               "inode_total": 524288, 
               "inode_used": 300, 
              * "mount": "/boot", *
               "options": "rw,seclabel,relatime,attr2,inode64,noquota", 
               *"size_available": 910417920, *
               "size_total": 1063256064, 
               "uuid": "bcce38b2-0c6c-44aa-99be-20e3553d23ee"


how can I get variables for /, /var /boot and other partitions and create 
report like this in a file:
root: 10GB free
/boot: 800MB free
/var: 2GB free 

Thanks



-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/00b88b58-f390-4676-8857-3b27a96d1ae3n%40googlegroups.com.

Reply via email to