dbcecb64b8
Backport # 40134 - Ensure Ctrl+C interrupt for pause module works in all cases
21 lines
386 B
YAML
21 lines
386 B
YAML
- name: Test pause
|
|
hosts: testhost
|
|
gather_facts: no
|
|
become: no
|
|
|
|
tasks:
|
|
- pause:
|
|
seconds: 1
|
|
register: results
|
|
|
|
- assert:
|
|
that:
|
|
- results.stdout is search('Paused for \d+\.\d+ seconds')
|
|
|
|
- pause:
|
|
minutes: 1
|
|
register: results
|
|
|
|
- assert:
|
|
that:
|
|
- results.stdout is search('Paused for \d+\.\d+ minutes')
|