mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
b43a1a9f9f
commit
c47c16782f
1 changed files with 5 additions and 0 deletions
|
@ -406,6 +406,11 @@
|
||||||
# requires a tty by default.
|
# requires a tty by default.
|
||||||
#use_tty = True
|
#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]
|
[persistent_connection]
|
||||||
|
|
||||||
# Configures the persistent connection timeout value in seconds. This value is
|
# Configures the persistent connection timeout value in seconds. This value is
|
||||||
|
|
Loading…
Reference in a new issue