ansible: set ssh retry option to 5

We noticed that sometime, ceph-ansible can fail with error :

`Failed to connect to the host via ssh:`

It can occurs after the task `restart firewalld` has been played.

Setting `retries` to 5 should prevent from unexcepted ssh failure.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/2347/head
Guillaume Abrioux 2018-01-23 14:38:35 +01:00
parent 9306a1789c
commit 5bf5642556
1 changed files with 3 additions and 0 deletions

View File

@ -19,3 +19,6 @@ timeout = 30
[ssh_connection]
# see: https://github.com/ansible/ansible/issues/11536
control_path = %(directory)s/%%h-%%r-%%p
# Option to retry failed ssh executions if the failure is encountered in ssh itself
retries = 5