Wait for output of command

1,295 views
Skip to first unread message

Mark Olliver

unread,
Jan 27, 2015, 2:15:56 PM1/27/15
to ansible...@googlegroups.com
Hi,


I have a command that I need to wait for a completed output from which may take an hour how can I tell ansible to wait (ideally with a timeout so that if it does not get a completed status within the hour then it errors).

The command is as follows:
ec2-describe-conversion-tasks --region us-east-1

you can run the command many times, one of the fields gives a status so once the field changes to completed then the job is ok and can continue.

Thanks

Mark

James Martin

unread,
Jan 28, 2015, 11:36:23 PM1/28/15
to ansible...@googlegroups.com, ma...@olliver.me.uk
Looks like you want to use a do-until-loop:


- James
Reply all
Reply to author
Forward
0 new messages