ansible.builtin.checksum filter – checksum of input data

Note

This filter plugin is part of ansible-core and included in all Ansible installations. In most cases, you can use the short plugin name checksum. However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.checksum for easy linking to the plugin documentation and to avoid conflicting with other collections that may have the same filter plugin name.

Synopsis

  • Returns a checksum (SHA-1) hash of the input data.

Input

This describes the input of the filter, the value before | ansible.builtin.checksum.

Parameter

Comments

Input

any / required

Data to checksum.

Examples

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

Return Value

Key

Description

Return value

string

The checksum (SHA-1) of the input.

Returned: success

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.