Are there other modules that behave in this fashion as well? If so a generic retry loop that takes a callable for checking state might be useful as a bit of refactoring.
-scott On Thursday, February 13, 2014 4:26:12 PM UTC-5, Bruce Pennypacker wrote: > > while not timeout_exceeded: > get_instance_state > if InService: > return success; > else if instance_error AND timeout_exceeded: > return error; > sleep 1 > > return timeout > > Any comments/suggestions about this, especially from other folks using the > ec2_elb module? > > -Bruce > > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
