Skip to content

Instantly share code, notes, and snippets.

@miohtama
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miohtama/4dd11778960e3e8118c7 to your computer and use it in GitHub Desktop.
Save miohtama/4dd11778960e3e8118c7 to your computer and use it in GitHub Desktop.
Creating proper virtualenvs with Ansible
# Explicitly give Distribute version 0.7.3 to bootstrap the automatic
# download of the latest setuptools, as one provided with the operating
# system is too old to run requirements.txt
- name: Create virtualenv
sudo: yes
pip: name=distribute version=0.7.3 virtualenv=/srv/django/yourproject/venv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment