Skip to content

checksum

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 1.9.

Synopsis

  • Returns a checksum (L(SHA-1, https://en.wikipedia.org/wiki/SHA-1)) hash of the input data.

Parameters

Parameter Defaults / Choices Comments
_input
raw
required
Data to checksum.

Examples

# csum => "109f4b3c50d7b0df729d299bc6f8e9ef9066971f"
csum: "{{ 'test2' | checksum }}"

Return Values

Key Data Type Description Returned
_value string The checksum (SHA-1) of the input.