Skip to content

Commit

Permalink
installed django
Browse files Browse the repository at this point in the history
  • Loading branch information
fdavis committed Jun 21, 2013
1 parent 5f44701 commit 10db1b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions django.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- hosts: django-servers
sudo: yes
roles:
- role: django
tags:
Expand Down
12 changes: 12 additions & 0 deletions roles/django/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: get the django source
uri: url=https://www.djangoproject.com/download/1.5.1/tarball/ dest=/opt/django.tgz follow_redirects=yes creates=/opt/django.tgz

- name: untar django
command: tar xf /opt/django.tgz -C /opt creates=/opt/Django-1.5.1

- name: install it
command: chdir=/opt/Django-1.5.1 python setup.py install creates=/opt/Django-1.5.1/README.rst

- name: print out the version
command: python -c "import django; print django.VERSION"

0 comments on commit 10db1b2

Please sign in to comment.