Timing out a specific step

From Notes_Wiki

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