Debian Codegraph @

test/integration/targets/pause/pause-5.yml

raw
1 - name: Test pause module echo output
2 hosts: localhost
3 become: no
4 gather_facts: no
5
6 tasks:
7 - pause:
8 echo: yes
9 prompt: Enter some text
10 register: results
11
12 - name: Ensure that input was captured
13 assert:
14 that:
15 - results.user_input == 'hello there'
16
17 - pause:
18 echo: yes
19 prompt: Enter some text to edit
20 register: result
21
22 - name: Ensure edited input was captured
23 assert:
24 that:
25 - result.user_input == 'hello tommy boy'
26
27 - pause:
28 echo: no
29 prompt: Enter some text
30 register: result
31
32 - name: Ensure secret input was caputered
33 assert:
34 that:
35 - result.user_input == 'supersecretpancakes'
36
37 # A private (echo: no) pause input is registered as a secret, so it must be
38 # masked at a Display egress boundary while the raw value stays usable above.
39 - name: Display the private pause input
40 debug:
41 msg: SCNPAUSE supersecretpancakes