Re: [ansible-project] how to set timeout for shell command

2014-09-22 Thread Karl E. Jorgensen
Hi On Mon, Sep 15, 2014 at 08:36:59AM -0700, Justin Jinsik Kim wrote: Hi, I want to define response waiting time limit for all shell commands on ansible-playbook test.yml: - name: want to quit if it doesn't get response in 5 secs shell: sleep 100 - name: want to quit if it

[ansible-project] how to set timeout for shell command

2014-09-15 Thread Justin Jinsik Kim
Hi, I want to define response waiting time limit for all shell commands on ansible-playbook test.yml: - name: want to quit if it doesn't get response in 5 secs shell: sleep 100 - name: want to quit if it doesn't get response in 5 secs shell: sleep 200 - name: want to quit if it

Re: [ansible-project] how to set timeout for shell command

2014-09-15 Thread James Cammarata
Hi Justin, currently there is no general purpose timeout parameter for shell/commands, so the use of async as you've noted is the proper way to limit the execution time of a long-running task. Thanks! On Mon, Sep 15, 2014 at 10:36 AM, Justin Jinsik Kim neib...@gmail.com wrote: Hi, I want to