ansible.builtin.hash (v2.16.0) — filter

hash of input data

| "added in version" 1.9 of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns a configurable hash of the input data. Uses L(SHA-1, https://en.wikipedia.org/wiki/SHA-1) by default.

Inputs

    
_input:
    description: Data to checksum.
    required: true
    type: raw

hashtype:
    default: sha1
    description:
    - Type of algorithm to produce the hash.
    - The list of available choices depends on the installed Python's hashlib.
    type: string

Outputs

_value:
  description: The checksum of the input, as configured in O(hashtype).
  type: string