Skip to content

Instantly share code, notes, and snippets.

@smarnach
Last active August 30, 2017 09:37
Show Gist options
  • Save smarnach/a5b7535d4403e39d2d308e5dc6c26d3c to your computer and use it in GitHub Desktop.
Save smarnach/a5b7535d4403e39d2d308e5dc6c26d3c to your computer and use it in GitHub Desktop.
---
# Example sandbox configuration
# for single server community
# installs
- name: Bootstrap instance(s)
hosts: all
gather_facts: no
become: True
roles:
- python
- name: Configure instance(s)
hosts: all
become: True
gather_facts: True
vars:
migrate_db: "yes"
EDXAPP_LMS_NGINX_PORT: '80'
edx_platform_version: 'master'
# Set to false if deployed behind another proxy/load balancer.
NGINX_SET_X_FORWARDED_HEADERS: True
roles:
- role: swapfile
SWAPFILE_SIZE: 4GB
- role: nginx
nginx_sites:
- cms
- lms
- forum
nginx_default_sites:
- lms
- role: edxlocal
when: EDXAPP_MYSQL_HOST == 'localhost'
- role: memcache
when: "'localhost' in ' '.join(EDXAPP_MEMCACHE)"
- role: mongo
when: "'localhost' in EDXAPP_MONGO_HOSTS"
- role: rabbitmq
rabbitmq_ip: 127.0.0.1
- role: edxapp
celery_worker: True
- edxapp
- oraclejdk
- role: elasticsearch
when: "'localhost' in EDXAPP_ELASTIC_SEARCH_CONFIG|map(attribute='host')"
- forum
- edx_ansible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment