mirror of https://github.com/ansible/ansible.git
added 'task timeout' feature (#69284)
* added 'task timeout' feature Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>pull/69609/head
parent
ac533403e3
commit
df4e83deda
@ -0,0 +1,12 @@
|
||||
- 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"]'
|
Loading…
Reference in New Issue