Debian Codegraph @

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

raw
1 - name: Test pause module input isn't captured with a timeout
2 hosts: localhost
3 become: no
4 gather_facts: no
5
6 tasks:
7 - name: pause with the default message
8 pause:
9 seconds: 3
10 register: default_msg_pause
11
12 - name: pause with a custom message
13 pause:
14 prompt: Wait for three seconds
15 seconds: 3
16 register: custom_msg_pause
17
18 - name: Ensure that input was not captured
19 assert:
20 that:
21 - default_msg_pause.user_input == ''
22 - custom_msg_pause.user_input == ''
23
24 - debug:
25 msg: Task after pause