Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
ansible: update pip & setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
monty5811 committed Jan 25, 2017
1 parent 25447ab commit c99190d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions ansible/roles/web/tasks/setup_django_app.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---

- name: Install packages required by the Django app inside virtualenv
pip:
requirements: "{{ requirements_file }}"
executable: "{{ virtualenv_path }}/bin/pip"
command: "{{ virtualenv_path }}/bin/pip install -r {{ requirements_file }}"

- name: Run the Django migrate command
command: '{{virtualenv_path}}/bin/python {{ application_path}}/manage.py migrate --settings={{ django_settings_file}}'
Expand Down
5 changes: 4 additions & 1 deletion ansible/roles/web/tasks/setup_virtualenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
command: pyvenv-3.4 "{{ virtualenv_path }}"
creates={{ virtualenv_path }}/bin/activate

- name: Update pip and setuptools
command: "{{ virtualenv_path }}/bin/pip install -U pip setuptools"

- name: Ensure gunicorn is installed
pip: virtualenv={{ virtualenv_path }} name=gunicorn
command: "{{ virtualenv_path }}/bin/pip install gunicorn"

- name: Create the Gunicorn script file
template: src=gunicorn_start.j2
Expand Down

0 comments on commit c99190d

Please sign in to comment.