skip the playbook task execution if it is taking more than a specified time

12 views
Skip to first unread message

Akku

unread,
Aug 2, 2017, 7:24:05 AM8/2/17
to Ansible Project
I want to skip a ansible playbook task if it is taking more time to execute than a specified limit
egg: I need to skip the execution of a find command task, if it is not giving response in 5 minutes.

How can do it, Could someone help on this?

Kai Stian Olstad

unread,
Aug 2, 2017, 7:40:59 AM8/2/17
to ansible...@googlegroups.com
You could use async and poll
https://docs.ansible.com/ansible/latest/playbooks_async.html

--
Kai Stian Olstad

Akku

unread,
Aug 2, 2017, 7:43:22 AM8/2/17
to Ansible Project, ansible-pr...@olstad.com
Thanks Kai
Reply all
Reply to author
Forward
0 new messages