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...") | m | ||
| Line 1: | Line 1: | ||
| [[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Ansible|ansible]] > [[Ansible tips and tricks]] > [[Timing out a specific step]] | |||
| To timeout a specific step of ansible use: | To timeout a specific step of ansible use: | ||
| Line 10: | Line 9: | ||
| </pre> | </pre> | ||
| This would timeout the sleep after 20s after checking whether command has completed executing every 5 seconds. | This would timeout the sleep after 20s after checking whether command has completed executing every 5 seconds. | ||
| [[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Ansible|ansible]] > [[Ansible tips and tricks]] > [[Timing out a specific step]] | |||
Latest revision as of 11:49, 28 July 2022
Home > CentOS > CentOS 6.x > System administration tools > ansible > Ansible tips and tricks > 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.
Home > CentOS > CentOS 6.x > System administration tools > ansible > Ansible tips and tricks > Timing out a specific step

