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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200325163959.ua345bkyh5xgdujs%40olstad.com.

Reply via email to