summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-10-11 08:54:15 -0400
committerTim Rozet <trozet@redhat.com>2017-10-11 09:03:07 -0400
commit0fc3c2190ad304052d0ec210c94ab3f09e95b71d (patch)
tree11f6e1efd1d16664c08951d20ca5f5220e42c10d /lib/ansible/playbooks
parent75afddf0e4032e4af389c5d85b529704102a77a2 (diff)
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 <trozet@redhat.com>
Diffstat (limited to 'lib/ansible/playbooks')
-rw-r--r--lib/ansible/playbooks/deploy_dependencies.yml6
1 files changed, 6 insertions, 0 deletions
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