Difference between revisions of "Timing out a specific step"
From Notes_Wiki
|  (Created page with "<yambe:breadcrumb>Ansible_tips_and_tricks|Ansible tips and tricks</yambe:breadcrumb> =Timing out a specific step=  To timeout a specific step of ansible use: <pre>   - name: S...") | 
| (No difference) | 
Revision as of 12:58, 5 February 2016
<yambe:breadcrumb>Ansible_tips_and_tricks|Ansible tips and tricks</yambe:breadcrumb>
Timing out a specific step
To timeout a specific step of ansible use:
  - name: Sleep for 30 seconds
    shell: sleep 30
    aysnc: 20
    poll: 5
This would timeout the sleep after 20s after checking whether command has completed executing every 5 seconds.

