Changeset - a77fff9fcd91
[Not reviewed]
0 1 1
Branko Majic (branko) - 8 years ago 2015-11-03 16:04:39
branko@majic.rs
MAR-43: Deploy information about project home directory in the Python virtual environment. This makes things more convenient when using virtualenv wrapper.
2 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/tasks/main.yml
Show inline comments
 
@@ -39,6 +39,10 @@
 
  sudo_user: "{{ admin }}"
 
  command: /usr/bin/virtualenv "{{ home }}/virtualenv" creates="{{ home }}/virtualenv/bin/activate"
 

	
 
- name: Configure project directory for the Python virtual environment
 
  template: src="venv_project.j2" dest="{{ home }}/virtualenv/.project"
 
            owner="{{ admin }}" group="{{ user }}" mode="640"
 

	
 
- name: Create directory where virtualenvs will be symlinked to
 
  sudo_user: "{{ admin }}"
 
  file: path="~/.virtualenvs" state=directory mode=750
roles/wsgi_website/templates/venv_project.j2
Show inline comments
 
new file 100644
 
{{ home }}
 
\ No newline at end of file
0 comments (0 inline, 0 general)