On Wed, Mar 25, 2020 at 07:15:51AM -0700, Shifa Shaikh wrote:
>     "{{ ansible_host }}_{{ item.mount }}: {{ (100 * ((item.size_total - 
> item.size_available) / item.size_available)) | round(1, 'common') }}"

That is not how you calculate percentage, you need to divide on item.size_total
and not item.size_available.

Kai Stian Olstad

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 

Reply via email to