# print free space for mount

**URL:** <https://forum.ansible.com/t/print-free-space-for-mount/30237>\
**Category:** Ansible Project\
**Created:** [May 2, 2019, 3:28am UTC](https://forum.ansible.com/t/print-free-space-for-mount/30237 "2019-05-02T03:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Britton](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Post date:** [May 2, 2019, 3:28am UTC](https://forum.ansible.com/t/print-free-space-for-mount/30237/1 "2019-05-02T03:28:17Z")

</div>

I am trying to print the free space for a mount that an application needs to have x free on. Once i can do that i would look at adding actions based on that, but i would also like to the user running the play to know if there is an issue or not.

Here is what i have so far, and i cant see to get what i would expect, any thoughts:

code:

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 8, 2019, 7:18pm UTC](https://forum.ansible.com/t/print-free-space-for-mount/30237/2 "2019-05-08T19:18:58Z")

</div>

Then you would need to write you own callback plugin or try the included ones to see if have output you like  
[https://docs.ansible.com/ansible/latest/plugins/callback.html](https://docs.ansible.com/ansible/latest/plugins/callback.html)
