Commit 3a22b4fa by Jason Bau

Merge pull request #90 from edx/jbau-distribute

sets --distribute flag in virtualenv creation
parents a704f356 b4a72eea
---
# create the 'edx' virtual environment in /opt so that roles can populate it
- name: easy_install pip
easy_install: name=pip
- name: Install python and pip
apt: pkg={{item}} install_recommends=yes state=present update_cache=yes
with_items:
- python2.7
- python-pip
tags:
- venv_base
- pre_install
- install
- name: pip install virtualenv
......@@ -25,7 +28,7 @@
- install
- name: create the edx virtualenv directory initial contents
command: /usr/local/bin/virtualenv $venv_dir creates=$venv_dir/bin/activate
command: /usr/local/bin/virtualenv $venv_dir --distribute creates=$venv_dir/bin/activate
tags:
- venv_base
- install
......@@ -16,7 +16,7 @@
- cms-env
- cms
- update
- include: ../../nginx/tasks/nginx_site.yml state=link site_name=lms-xml
- include: ../../nginx/tasks/nginx_site.yml state=link site_name=lms-xml-backend
......
......@@ -60,4 +60,11 @@
tags:
- nginx
- update
- name: Register the fact that nginx has run
command: echo True
register: nginx_role_run
tags:
- nginx
- update
......@@ -7,6 +7,7 @@
# seems like paths in first_available_file must be relative to the playbooks dir
- "roles/nginx/templates/{{ site_name }}.j2"
notify: restart nginx
when_set: $nginx_role_run
tags:
- nginx
- lms
......@@ -17,6 +18,7 @@
- name: Creating nginx config link {{ site_name }}
file: src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state={{ state }} owner=root group=root
notify: restart nginx
when_set: $nginx_role_run
tags:
- nginx
- lms
......
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