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.
ansible/test/integration/targets/playbook/timeout.yml

14 lines
325 B
YAML

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