Timing out a specific step

From Notes_Wiki
Revision as of 11:49, 28 July 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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