mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
590 B
YAML
26 lines
590 B
YAML
2 years ago
|
- name: Test pause module input isn't captured with a timeout
|
||
|
hosts: localhost
|
||
|
become: no
|
||
|
gather_facts: no
|
||
|
|
||
|
tasks:
|
||
|
- name: pause with the default message
|
||
|
pause:
|
||
|
seconds: 3
|
||
|
register: default_msg_pause
|
||
|
|
||
|
- name: pause with a custom message
|
||
|
pause:
|
||
|
prompt: Wait for three seconds
|
||
|
seconds: 3
|
||
|
register: custom_msg_pause
|
||
|
|
||
|
- name: Ensure that input was not captured
|
||
|
assert:
|
||
|
that:
|
||
|
- default_msg_pause.user_input == ''
|
||
|
- custom_msg_pause.user_input == ''
|
||
|
|
||
|
- debug:
|
||
|
msg: Task after pause
|