Debian Codegraph @

test/integration/targets/builtin_vars_prompt/vars_prompt-5.yml

raw
1 - name: Test vars_prompt hashing
2 hosts: testhost
3 become: no
4 gather_facts: no
5
6 vars_prompt:
7 - name: password
8 confirm: yes
9 encrypt: sha512_crypt
10 salt: 'jESIyad4F08hP3Ta'
11
12 tasks:
13 - name: verify the prompted value produced the expected hash
14 assert:
15 that:
16 - password == ('Scenic-Improving-Payphone' | password_hash('sha512', 'jESIyad4F08hP3Ta'))
17
18 - debug:
19 # The literal password here tests that the input value is registered
20 # as a secret and will be redacted in the output.
21 msg: Scenic-Improving-Payphone {{ password }}