- name: Test pause
hosts: localhost
gather_facts: no
become: no
tasks:
- pause:
seconds: 1
register: results
- assert:
that:
- results.stdout is search('Paused for \d+\.\d+ seconds')
minutes: 1
- results.stdout is search('Paused for \d+\.\d+ minutes')