openstack-ansible-plugins/connection
Kevin Carter 621c552e23
Add retry to execution commands
There are quite a few instances where the "exec_command" function fails
due unrelated issues. This change adds a retry with a backoff. The exec
function will now retry 3 times in the event of an exception with a cool
down of 2 seconds. The play context for retries will also be set if
undefined making it possible to recover from transient UNREACHABLE
errors.

Change-Id: Ic7c7af49e1c5eba21216b33814b92e276e3fba3e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-09-10 12:49:37 -05:00
..
ssh.py Add retry to execution commands 2018-09-10 12:49:37 -05:00