From e4c9ffa7e6ea576b9a7d97892e7d70361710b437 Mon Sep 17 00:00:00 2001 From: "Jose A. Rivera" Date: Wed, 21 Sep 2016 13:51:34 -0700 Subject: [PATCH] Set default value for Do-Until loop retries. Fixes #17695 --- lib/ansible/playbook/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 34de600de9..914d92e4c4 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -81,7 +81,7 @@ class Task(Base, Conditional, Taggable, Become): _notify = FieldAttribute(isa='list') _poll = FieldAttribute(isa='int', default=10) _register = FieldAttribute(isa='string') - _retries = FieldAttribute(isa='int') + _retries = FieldAttribute(isa='int', default=3) _until = FieldAttribute(isa='list', default=[]) def __init__(self, block=None, role=None, task_include=None):