Merge "Enabled ssh retries for ansible"

This commit is contained in:
Zuul 2018-01-31 19:55:45 +00:00 committed by Gerrit Code Review
commit 29a08ce853
1 changed files with 3 additions and 0 deletions

View File

@ -1261,6 +1261,9 @@ class AnsibleJob(object):
config.write('internal_poll_interval = 0.01\n')
config.write('[ssh_connection]\n')
# NOTE(pabelanger): Try up to 3 times to run a task on a host, this
# helps to mitigate UNREACHABLE host errors with SSH.
config.write('retries = 3\n')
# NB: when setting pipelining = True, keep_remote_files
# must be False (the default). Otherwise it apparently
# will override the pipelining option and effectively