Commit 212d3abb by e0d

conditionally creating dbs.

parent 0fc14446
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
login_password={{ EDXAPP_MYSQL_PASSWORD }} login_password={{ EDXAPP_MYSQL_PASSWORD }}
state=present state=present
encoding=utf8 encoding=utf8
when: EDXAPP_MYSQL_USER
- name: create a database for xqueue - name: create a database for xqueue
mysql_db: > mysql_db: >
db=xqueue db=xqueue
...@@ -28,6 +29,7 @@ ...@@ -28,6 +29,7 @@
login_password={{ XQUEUE_MYSQL_PASSWORD }} login_password={{ XQUEUE_MYSQL_PASSWORD }}
state=present state=present
encoding=utf8 encoding=utf8
when: XQUEUE_MYSQL_USER
- name: create a database for ora - name: create a database for ora
mysql_db: > mysql_db: >
...@@ -36,6 +38,7 @@ ...@@ -36,6 +38,7 @@
login_password={{ ORA_MYSQL_PASSWORD }} login_password={{ ORA_MYSQL_PASSWORD }}
state=present state=present
encoding=utf8 encoding=utf8
when: ORA_MYSQL_USER
- name: create a database for discern - name: create a database for discern
mysql_db: > mysql_db: >
...@@ -44,6 +47,7 @@ ...@@ -44,6 +47,7 @@
login_password={{ DISCERN_MYSQL_PASSWORD }} login_password={{ DISCERN_MYSQL_PASSWORD }}
state=present state=present
encoding=utf8 encoding=utf8
when: DISCERN_MYSQL_USER
- name: install memcached - name: install memcached
......
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