community.general.crc32 filter – Generate a CRC32 checksum

Note

This filter plugin is part of the community.general collection (version 6.6.2).

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

Input

string / required

The string to checksum.

Examples

- name: Checksum a test string
  ansible.builtin.debug:
    msg: "{{ 'test' | community.general.crc32 }}"

Return Value

Key

Description

Return value

string

CRC32 checksum.

Returned: success

Authors

  • Julien Riou

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.