The default ssh connection plugin will cause a task to fail if a
connection cannot be made first time. The failures have been found to
cause a number of builds to fail.
This patch adds a new connection plugin called ssh_retry and sets it as
the default one to use.
The plugin can be enabled by setting the following options in
ansible.cfg:
[defaults] connection_plugins = plugins/connection_plugins
transport = ssh_retry
Reviewed: https:/ /review. openstack. org/152936 /git.openstack. org/cgit/ stackforge/ os-ansible- deployment/ commit/ ?id=e9f7a0dec12 8ffc0244f111966 42e290c1eb727d
Committed: https:/
Submitter: Jenkins
Branch: master
commit e9f7a0dec128ffc 0244f11196642e2 90c1eb727d
Author: git-harry <email address hidden>
Date: Wed Feb 4 14:41:35 2015 +0000
Add ssh_retry connection plugin
The default ssh connection plugin will cause a task to fail if a
connection cannot be made first time. The failures have been found to
cause a number of builds to fail.
This patch adds a new connection plugin called ssh_retry and sets it as
the default one to use.
The plugin can be enabled by setting the following options in
ansible.cfg:
[defaults]
connection_ plugins = plugins/ connection_ plugins
transport = ssh_retry
[ssh_retry]
retries = 3
Note, the default retries is 3.
Change-Id: Ic187fb154cfa7b 6fa95b19bee4757 ec976f3f368
Co-Authored-By: Hugh Saunders <email address hidden>
Closes-Bug: #1404343