Commit de2aa9f2 authored by jaywink's avatar jaywink

Ensure to install virtualenv package and use ansible 2.x virtualenv_python

parent f9f5c952
......@@ -18,6 +18,7 @@
- python-dev
- python3-dev
# Virtualenv
- virtualenv
- python-virtualenv
- python3-setuptools
# Redis
......
---
- name: Create virtualenv
# We do this here since Ansible only has virtualenv_python in 2.x
command: creates=/home/{{ socialhome_os_user }}/venv virtualenv -p python3 /home/{{ socialhome_os_user }}/venv
- name: Update pip, setuptools and pip-tools
pip: name={{ item }} state=latest virtualenv=/home/{{ socialhome_os_user }}/venv
pip: name={{ item }} state=latest virtualenv=/home/{{ socialhome_os_user }}/venv virtualenv_python=python3
with_items:
- pip
- setuptools
......
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