On 22.05.2018 10:20, Madushan Chathuranga wrote:
I'm using ansible version 2.5.0 I'm trying execute a task with an Do
Until
Loop.
http://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#do-until-loops
Is it possible to run this task with an infinite number of retries ?
with
out defying the number of retries.
e.g:
until: result.stdout.find("all systems go") != -1delay: 10
task will finish only when the condition is success not when number of
retries exceeds.
Not to my knowledge, why don't you just set a high retry count?
With a delay 10 and retries 8640, that is 24 hours, and if you increase
the delay to 20 it's 48 hours.
--
Kai Stian Olstad
--
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/18caf851b761ad28bcde75d7ae4cd7a0%40olstad.com.
For more options, visit https://groups.google.com/d/optout.