From c47c16782f8ec78ad0b51c433ffbf30f900451de Mon Sep 17 00:00:00 2001 From: Matt Ralph Date: Fri, 25 May 2018 04:22:26 +0100 Subject: [PATCH] Add ssh_connection retries to ansible.cfg example (#38393) I add the `retries` option under [ssh_connection] as it was missing, and some brief comments on the backoff logic. --- examples/ansible.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/ansible.cfg b/examples/ansible.cfg index fde72571639..a2a3c54d370 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -406,6 +406,11 @@ # requires a tty by default. #use_tty = True +# Number of times to retry an SSH connection to a host, in case of UNREACHABLE. +# For each retry attempt, there is an exponential backoff, +# so after the first attempt there is 1s wait, then 2s, 4s etc. up to 30s (max). +#retries = 3 + [persistent_connection] # Configures the persistent connection timeout value in seconds. This value is