Commit 807422d3 authored by Jocelyn Delalande's avatar Jocelyn Delalande

lettravox : switch to Python 3

parent ff9534ac
- name: install dependencies
apt: name={{ item }} force=yes state=present
with_items:
- python
- python-virtualenv
- python-all-dev
- python-pip
- git
- libjpeg-dev
- libpng12-dev
- libfreetype6-dev
- texlive-latex-extra
- texlive-lang-french
- texlive-humanities
- latex2html
- supervisor
- sudo
apt:
force: yes
state: present
pkg:
- python3
- python3-dev
- python3-venv
- git
- libjpeg-dev
- libpng-dev
- libfreetype6-dev
- texlive-latex-extra
- texlive-lang-french
- texlive-humanities
- latex2html
- supervisor
- sudo
- name: create LettraVox user
user: name={{ lettravox_user }} home={{ lettravox_home_dir }}
......@@ -36,17 +37,13 @@
group: '{{ lettravox_user }}'
recurse: yes
- name: create virtualenv
become: yes
become_user: '{{ lettravox_user }}'
shell: virtualenv {{ lettravox_venv_dir }} creates={{ lettravox_venv_dir }}
- name: install pip requirements
become: yes
become_user: '{{ lettravox_user }}'
pip:
requirements: '{{ lettravox_install_dir }}/requirements.txt'
virtualenv: '{{ lettravox_venv_dir }}'
virtualenv_python: python3
- name: install gunicorn
become: yes
......
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