The current (hard-coded) retry interval of 500 seconds can cause ansible to have excessive run-times in the case of many domains. `retry_interval` provides a way to customize the wait between retries of calls to route53.
- In the case that route53 is still servicing a prior request, this module will wait and try again after this many seconds. If you have many domain names, the default of 500 seconds may be too long.
required: false
default: 500
aliases: []
requirements: [ "boto" ]
author: Bruce Pennypacker
'''
@ -142,7 +148,7 @@ except ImportError:
print "failed=True msg='boto required for this module'"
sys.exit(1)
def commit(changes):
def commit(changes, retry_interval):
"""Commit changes, but retry PriorRequestNotComplete errors."""
retry = 10
while True:
@ -154,7 +160,7 @@ def commit(changes):
code = code.split("</Code>")[0]
if code != 'PriorRequestNotComplete' or retry < 0: