ansible/test/integration/targets/playbook/timeout.yml

13 lines
292 B
YAML
Raw Normal View History

- hosts: localhost
gather_facts: false
tasks:
- shell: sleep 100
timeout: 1
ignore_errors: true
register: time
- assert:
that:
- time is failed
- '"The command action failed to execute in the expected time frame" in time["msg"]'