I am provisioning a machine using ansible. I managed to install virtualenv and virtualenvwrapper fine on the vm. However, I can\'t seem to create a virtualenv on the vm.
You can create an environment using mkvirtualenv like this. I was hoping to be able to use the toggleglobalsitepackages
, but I found that toggling is not so convenient in an automated session.
- name: Make a virtualenv
shell: . /usr/share/virtualenvwrapper/virtualenvwrapper.sh && mkvirtualenv {{ venv }}
args:
executable: /bin/bash
creates: "{{ venvabs }}"