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-05 17:01:35 +0000
commit440acd77fbda4cf944cc915bef4183935527f651 (patch)
tree3ee05fdb6b16b77d2f007ed54984bb6a43c3c5bc
parent14b6578d2d40a3335d361ad234accb804245e3e4 (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>
-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)