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
even without specifying the collections:
keyword.
However, we recommend you use the FQCN for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same filter plugin name.
New in Ansible 1.9
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 |
---|---|
Data to checksum. |
Examples
# csum => "109f4b3c50d7b0df729d299bc6f8e9ef9066971f"
csum: "{{ 'test2' | checksum }}"
Return Value
Key |
Description |
---|---|
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.