"{{ ansible_facts | json_query('mounts[*].size_available') }} / {{ ansible_facts | json_query('mounts[*].size_total') }} * 100"
I am trying to get size available and divide it by size total and Multiply it by 100 to give me the percentage disc usage. This current code gives me the output something like this:
"msg": "[238273] / [483298433] * 100"
It completely ignores the /
and the *
.
How can I resolve this issue?