From 5bf564255626890973b7cc4e9622763471e561ea Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 23 Jan 2018 14:38:35 +0100 Subject: [PATCH] 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 --- ansible.cfg | 3 +++ 1 file changed, 3 insertions(+) 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