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

convert input password into password_hash

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns a password_hash of a secret.

Inputs

    
salt:
    description: Secret string that is used for the hashing, if none is provided a random
      one can be generated.
    type: int

ident:
    description: Algorithm identifier.
    type: string

_input:
    description: Secret to hash.
    required: true
    type: string

rounds:
    description: Number of encryption rounds, default varies by algorithm used.
    type: int

hashtype:
    choices:
    - md5
    - blowfish
    - sha256
    - sha512
    default: sha512
    description: Hashing algorithm to use.
    type: string

Outputs

_value:
  description: The resulting password hash.
  type: string