From: Guillaume Abrioux Date: Tue, 23 Jan 2018 13:38:35 +0000 (+0100) Subject: ansible: set ssh retry option to 5 X-Git-Tag: v3.0.20~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=94b298041f51ef93811a4cfb1673eaaf2ff40887;p=ceph-ansible.git 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 (cherry picked from commit 5bf564255626890973b7cc4e9622763471e561ea) --- diff --git a/ansible.cfg b/ansible.cfg index e7259e033..486f1bddc 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -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