summaryrefslogtreecommitdiffstats
path: root/lib/ansible/plugins/filter/checksum.yml
blob: 2f8eadd0084ca98bbc99e1f3e804995fe11a546e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
DOCUMENTATION:
  name: checksum
  version_added: "1.9"
  short_description: checksum of input data
  description:
    - Returns a checksum (L(SHA-1, https://en.wikipedia.org/wiki/SHA-1)) hash of the input data.
  positional: _input
  options:
    _input:
      description: Data to checksum.
      type: raw
      required: true

EXAMPLES: |
    # csum => "109f4b3c50d7b0df729d299bc6f8e9ef9066971f"
    csum: "{{ 'test2' | checksum }}"

RETURN:
  _value:
    description: The checksum (SHA-1) of the input.
    type: string