community.general.crc32 (8.5.0) — filter

Generate a CRC32 checksum

| "added in version" 5.4.0 of community.general"

Authors: Julien Riou

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Checksum a string using CRC32 algorithm and return its hexadecimal representation.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: Checksum a test string
    ansible.builtin.debug:
      msg: "{{ 'test' | community.general.crc32 }}"

Inputs

    
_input:
    description:
    - The string to checksum.
    required: true
    type: string

Outputs

_value:
  description: CRC32 checksum.
  type: string