community.general.crc32 filter – Generate a CRC32 checksum
Note
This filter plugin is part of the community.general collection (version 9.5.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.crc32
.
New in community.general 5.4.0
Synopsis
Checksum a string using CRC32 algorithm and return its hexadecimal representation.
Input
This describes the input of the filter, the value before | community.general.crc32
.
Parameter |
Comments |
---|---|
The string to checksum. |
Examples
- name: Checksum a test string
ansible.builtin.debug:
msg: "{{ 'test' | community.general.crc32 }}"
Return Value
Key |
Description |
---|---|
CRC32 checksum. Returned: success |