From 440acd77fbda4cf944cc915bef4183935527f651 Mon Sep 17 00:00:00 2001 From: Jose Lausuch Date: Thu, 5 Oct 2017 18:20:08 +0200 Subject: Increse ssh timeout in Ansible The SNAPS smoke tests pass on Apex when the timeout is a bit higher than 10 (default) JIRA: SNAPS-186 Change-Id: I2f42f0fc9a78bfad4ae3940813e87ba7572ad2f5 Signed-off-by: Jose Lausuch --- snaps/provisioning/ansible_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snaps/provisioning/ansible_utils.py b/snaps/provisioning/ansible_utils.py index aa1de9b..63f26e1 100644 --- a/snaps/provisioning/ansible_utils.py +++ b/snaps/provisioning/ansible_utils.py @@ -76,14 +76,14 @@ def apply_playbook(playbook_path, hosts_inv, host_user, ssh_priv_key_file_path, 'connection', 'module_path', 'forks', 'remote_user', 'private_key_file', 'ssh_common_args', 'ssh_extra_args', 'become', 'become_method', 'become_user', 'verbosity', - 'check']) + 'check', 'timeout']) ansible_opts = options( listtags=False, listtasks=False, listhosts=False, syntax=False, connection='ssh', module_path=None, forks=100, remote_user=host_user, private_key_file=pk_file_path, ssh_common_args=None, ssh_extra_args=ssh_extra_args, become=None, become_method=None, - become_user=None, verbosity=11111, check=False) + become_user=None, verbosity=11111, check=False, timeout=30) logger.debug('Setting up Ansible Playbook Executor for playbook - ' + playbook_path) -- cgit 1.2.3-korg