Commit afc00267 by Jason Bau

remote servers need python-mysql to run ansible mysql module

parent 5c688892
...@@ -8,15 +8,6 @@ ...@@ -8,15 +8,6 @@
tags: tags:
- xqueue - xqueue
- name: xqueue | create xqueue db
mysql_db: >
name={{xqueue_auth_config.DATABASES.default.NAME}}
login_host={{xqueue_auth_config.DATABASES.default.HOST}}
login_user={{xqueue_auth_config.DATABASES.default.USER}}
login_password={{xqueue_auth_config.DATABASES.default.PASSWORD}}
state=present
encoding=utf8
# Check out xqueue repo to {{xqueue_code_dir}} # Check out xqueue repo to {{xqueue_code_dir}}
- name: xqueue | install git and its recommends - name: xqueue | install git and its recommends
apt: pkg=git state=present install_recommends=yes apt: pkg=git state=present install_recommends=yes
...@@ -31,6 +22,15 @@ ...@@ -31,6 +22,15 @@
tags: tags:
- xqueue - xqueue
- name: xqueue | create xqueue db
mysql_db: >
name={{xqueue_auth_config.DATABASES.default.NAME}}
login_host={{xqueue_auth_config.DATABASES.default.HOST}}
login_user={{xqueue_auth_config.DATABASES.default.USER}}
login_password={{xqueue_auth_config.DATABASES.default.PASSWORD}}
state=present
encoding=utf8
- name: xqueue | create xqueue application config - name: xqueue | create xqueue application config
template: src=xqueue.env.json.j2 dest={{app_base_dir}}/env.json mode=0640 owner=www-data group=adm template: src=xqueue.env.json.j2 dest={{app_base_dir}}/env.json mode=0640 owner=www-data group=adm
notify: notify:
......
...@@ -105,6 +105,7 @@ xqueue_debian_pkgs: ...@@ -105,6 +105,7 @@ xqueue_debian_pkgs:
- python-numpy - python-numpy
- python-pip - python-pip
- python-scipy - python-scipy
- python-mysqldb
- rake - rake
- reprepro - reprepro
- rsyslog - rsyslog
......
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