Code Review
/
apex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Increase ssh timeout and add retry for Ansible
[apex.git]
/
apex
/
common
/
utils.py
diff --git
a/apex/common/utils.py
b/apex/common/utils.py
index
b1837b9
..
f418d42
100644
(file)
--- a/
apex/common/utils.py
+++ b/
apex/common/utils.py
@@
-76,7
+76,8
@@
def run_ansible(ansible_vars, playbook, host='localhost', user='root',
else:
conn_type = 'smart'
ansible_command = ['ansible-playbook', '--become', '-i', inv_host,
else:
conn_type = 'smart'
ansible_command = ['ansible-playbook', '--become', '-i', inv_host,
- '-u', user, '-c', conn_type, playbook, '-vv']
+ '-u', user, '-c', conn_type, '-T', '30',
+ playbook, '-vv']
if dry_run:
ansible_command.append('--check')
if dry_run:
ansible_command.append('--check')