Increse ssh timeout in Ansible 09/44409/1
authorJose Lausuch <jalausuch@suse.com>
Thu, 5 Oct 2017 16:20:08 +0000 (18:20 +0200)
committerJose Lausuch <jalausuch@suse.com>
Fri, 6 Oct 2017 07:15:54 +0000 (07:15 +0000)
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)

snaps/provisioning/ansible_utils.py

index aa1de9b..63f26e1 100644 (file)
@@ -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)