Looks like you want to use a do-until-loop: http://docs.ansible.com/playbooks_loops.html#do-until-loops
- James On Tuesday, January 27, 2015 at 2:15:56 PM UTC-5, Mark Olliver wrote: > > 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 > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/06adb82c-0a4c-416a-a829-dbf1fd33b0ce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
