]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ansible: set ssh retry option to 5
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 23 Jan 2018 13:38:35 +0000 (14:38 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 24 Jan 2018 13:20:44 +0000 (14:20 +0100)
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>
(cherry picked from commit 5bf564255626890973b7cc4e9622763471e561ea)

ansible.cfg

index e7259e033b38981686133e06532696905d51d7ed..486f1bddc1ade3df781638f2e0d53d644ba5f0e2 100644 (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