summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Lausuch <jalausuch@suse.com>2017-10-05 18:20:08 +0200
committerJose Lausuch <jalausuch@suse.com>2017-10-06 07:15:54 +0000
commit9336f793daa76f8db005bfe4387805a51397af7b (patch)
treef479d288ff1e9d935702b45625407364ba396a9d
parent49aaa5d61e87e11c5d5b9ce7dd2fa598f16b82a7 (diff)
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 <jalausuch@suse.com> (cherry picked from commit 440acd77fbda4cf944cc915bef4183935527f651)
-rw-r--r--snaps/provisioning/ansible_utils.py4
1 files 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)