Debian Codegraph @

test/integration/targets/secret_masking_ask_pass/ask_pass.yml

raw
1 ---
2 - name: ask-pass prompt masking
3 hosts: localhost
4 gather_facts: false
5 tasks:
6 - name: register passwords from plugin
7 get_prompted_pass:
8 register:
9 become_pass_result: _task.result.become_pass
10 connection_pass_result: _task.result.connection_pass
11 become: true
12 become_method: sudo
13
14 - name: verify password var is not redacted in process
15 assert:
16 that:
17 - connection_pass_result == 'ConnectionPasswordSecret'
18
19 - name: debug output of the prompted password is redacted
20 debug:
21 msg: "ask_pass: {{ connection_pass_result }}"
22
23 - name: verify become password var is not redacted in process
24 assert:
25 that:
26 - become_pass_result == 'BecomePasswordSecret'
27
28 - name: debug output of the prompted become password is redacted
29 debug:
30 msg: "ask_become_pass: {{ become_pass_result }}"