Commit 6299f906 by Fred Smith

ensure python-mysqldb is installed before we attempt to create_dbs

parent 5c32d132
...@@ -41,6 +41,11 @@ ...@@ -41,6 +41,11 @@
tasks: tasks:
- fail: msg="COMMON_ENVIRONMENT and COMMON_DEPLOYMENT need to be defined to use this play" - fail: msg="COMMON_ENVIRONMENT and COMMON_DEPLOYMENT need to be defined to use this play"
when: COMMON_ENVIRONMENT is not defined or COMMON_DEPLOYMENT is not defined when: COMMON_ENVIRONMENT is not defined or COMMON_DEPLOYMENT is not defined
- name: install python mysqldb module
apt: pkg={{item}} install_recommends=no state=present update_cache=yes
sudo: yes
with_items:
- python-mysqldb
- name: create mysql databases for the edX stack - name: create mysql databases for the edX stack
mysql_db: > mysql_db: >
db={{ item[0] }}{{ item[1].db_name }} db={{ item[0] }}{{ item[1].db_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