add clean_venv option (#41069)

This commit is contained in:
Emmanuel Cazenave 2020-04-02 08:52:23 +02:00
parent cb1616d826
commit 149bfa569e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,4 @@
clean_venv: false
compile_theme: true
django_version: 1.11.18
git_ssh: false

View File

@ -37,6 +37,12 @@
become: yes
become_user: postgres
- name: clean the virtualenv
file:
path: "{{venv_py3}}"
state: absent
when: clean_venv
- name: create the virtualenvs and install django
pip:
name: django