Timing out a specific step

From Notes_Wiki
Revision as of 12:58, 5 February 2016 by Saurabh (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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.