Commit f51495fd by Jillian Vogel

edx_sandbox.yml: Run edxlocal role only if edxapp db is on localhost

* Makes the mysql role a dependency of edxlocal
* Moves memcached install into new role
* Installs memcached if EDXAPP_MEMCACHE contains localhost
parent ed7dc2c9
......@@ -34,9 +34,10 @@
nginx_sites:
- ecommerce
when: SANDBOX_ENABLE_ECOMMERCE
- role: mysql
- role: edxlocal
when: EDXAPP_MYSQL_HOST == 'localhost'
- edxlocal
- role: memcache
when: "'localhost' in ' '.join(EDXAPP_MEMCACHE)"
- role: mongo
when: "'localhost' in EDXAPP_MONGO_HOSTS"
- { role: 'rabbitmq', rabbitmq_ip: '127.0.0.1' }
......
......@@ -74,7 +74,3 @@
name={{ COMMON_MYSQL_ADMIN_USER }}
password={{ COMMON_MYSQL_ADMIN_PASS }}
priv='*.*:CREATE USER'
- name: install memcached
apt: pkg=memcached state=present
# Installs memcached
- name: install memcached
apt: pkg=memcached state=present update_cache=yes
tags:
- install
- install:memcache
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