Skip to content

md5

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin
Added in version historical.

Synopsis

  • Returns an L(MD5 hash, https://en.wikipedia.org/wiki/MD5) of the input data

Parameters

Parameter Defaults / Choices Comments
_input
raw
required
data to hash

Notes

Note

  • This requires the MD5 algorithm to be available on the system, security contexts like FIPS might prevent this.
  • MD5 has long been deemed insecure and is not recommended for security related uses.

Examples

# md5hash => "ae2b1fca515949e5d54fb22b8ed95575"
md5hash: "{{ 'testing' | md5 }}"

Return Values

Key Data Type Description Returned
_value string The MD5 hash of the input.