From 6ddb7d379156ba03c9c4bdcb01679d6727cb4dd6 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Wed, 11 Oct 2017 08:54:15 -0400 Subject: Increase ssh timeout and add retry for Ansible Several users have experienced random disconnections from the undercloud during deployment. This should help to stop deployments from aborting. Change-Id: Idb7619d493b329944f21ea6641f6826a8fcc3907 Signed-off-by: Tim Rozet (cherry picked from commit 0fc3c2190ad304052d0ec210c94ab3f09e95b71d) --- lib/ansible/playbooks/deploy_dependencies.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/ansible/playbooks/deploy_dependencies.yml b/lib/ansible/playbooks/deploy_dependencies.yml index 8a575216..d2749675 100644 --- a/lib/ansible/playbooks/deploy_dependencies.yml +++ b/lib/ansible/playbooks/deploy_dependencies.yml @@ -78,3 +78,9 @@ regexp: "tostring" path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py when: vbmc_py.stat.exists == True + - name: Add ssh retry to Ansible config + ini_file: + path: /etc/ansible/ansible.cfg + section: ssh_connection + option: retries + value: 5 -- cgit 1.2.3-korg