Is there a Ansible filter to convert humain size to bytes? Example convert 1.0 MB, 976.6 KiB… => bytes integer value?

Hi,

is there a Ansible filter to convert humain size to bytes? Example convert 1.0 MB, 976.6 KiB… in bytes integer value?

Best regards,
Stéphane

I found that https://groups.google.com/d/msg/ansible-devel/IcGOAvbIOh8/4IK94VBHBAAJ

Why don’t add this filter in Ansible build-in filters?

human_to_bytes filter already exists in Ansible build-in filters but it’s not documented.

https://github.com/ansible/ansible/blob/09f4242ce425333521c633d2cf274b4b103ba658/test/integration/targets/filters/tasks/main.yml#L74

I have created an issue about this information missing in documentation: https://github.com/ansible/ansible/issues/24165

Best regards,
Stéphane