diff --git a/changelogs/fragments/947-acme-retry.yml b/changelogs/fragments/947-acme-retry.yml new file mode 100644 index 00000000..71196037 --- /dev/null +++ b/changelogs/fragments/947-acme-retry.yml @@ -0,0 +1,4 @@ +bugfixes: + - "acme_* modules - also retry on HTTP responses 502 Bad Gateway and 504 Gateway Timeout. The latter is needed for ZeroSSL, + which seems to have a lot of 504s + (https://github.com/ansible-collections/community.crypto/issues/945, https://github.com/ansible-collections/community.crypto/pull/947)." diff --git a/plugins/module_utils/acme/acme.py b/plugins/module_utils/acme/acme.py index caded1d5..5c70b5ed 100644 --- a/plugins/module_utils/acme/acme.py +++ b/plugins/module_utils/acme/acme.py @@ -60,7 +60,7 @@ else: # -1 usually means connection problems -RETRY_STATUS_CODES = (-1, 408, 429, 503) +RETRY_STATUS_CODES = (-1, 408, 429, 502, 503, 504) RETRY_COUNT = 10