Commit cac94245 authored by yumaojun's avatar yumaojun

fix (install.py):  ubuntu auto install mysql-server

1. set ansible_api connector as paramiko
2. set ubuntu apt-get --force-yes  when install packages
parent a729e544
...@@ -191,7 +191,7 @@ class PreSetup(object): ...@@ -191,7 +191,7 @@ class PreSetup(object):
if self._is_redhat: if self._is_redhat:
bash('yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass') bash('yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass')
if self._is_ubuntu: if self._is_ubuntu:
bash("apt-get -y install git python-pip gcc automake autoconf vim sshpass libmysqld-dev python-all-dev") bash("apt-get -y --force-yes install git python-pip gcc automake autoconf vim sshpass libmysqld-dev python-all-dev")
@staticmethod @staticmethod
......
...@@ -125,7 +125,7 @@ class MyRunner(MyInventory): ...@@ -125,7 +125,7 @@ class MyRunner(MyInventory):
self.results_raw = {} self.results_raw = {}
def run(self, module_name='shell', module_args='', timeout=10, forks=10, pattern='*', def run(self, module_name='shell', module_args='', timeout=10, forks=10, pattern='*',
become=False, become_method='sudo', become_user='root', become_pass='', transport='smart'): become=False, become_method='sudo', become_user='root', become_pass='', transport='paramiko'):
""" """
run module from andible ad-hoc. run module from andible ad-hoc.
module_name: ansible module_name module_name: ansible module_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment