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 # create the 'edx' virtual environment in /opt so that roles can populate it
- name: easy_install pip - name: Install python and pip
easy_install: name=pip apt: pkg={{item}} install_recommends=yes state=present update_cache=yes
with_items:
- python2.7
- python-pip
tags: tags:
- venv_base - pre_install
- install - install
- name: pip install virtualenv - name: pip install virtualenv
...@@ -25,7 +28,7 @@ ...@@ -25,7 +28,7 @@
- install - install
- name: create the edx virtualenv directory initial contents - 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: tags:
- venv_base - venv_base
- install - install
...@@ -61,3 +61,10 @@ ...@@ -61,3 +61,10 @@
- nginx - nginx
- update - update
- name: Register the fact that nginx has run
command: echo True
register: nginx_role_run
tags:
- nginx
- update
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
# seems like paths in first_available_file must be relative to the playbooks dir # seems like paths in first_available_file must be relative to the playbooks dir
- "roles/nginx/templates/{{ site_name }}.j2" - "roles/nginx/templates/{{ site_name }}.j2"
notify: restart nginx notify: restart nginx
when_set: $nginx_role_run
tags: tags:
- nginx - nginx
- lms - lms
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
- name: Creating nginx config link {{ site_name }} - 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 file: src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state={{ state }} owner=root group=root
notify: restart nginx notify: restart nginx
when_set: $nginx_role_run
tags: tags:
- nginx - nginx
- lms - 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