Download source and use virtualenv
This commit is contained in:
parent
2a6b645199
commit
1a391863df
@ -18,9 +18,19 @@
|
|||||||
- zip
|
- zip
|
||||||
- unzip
|
- unzip
|
||||||
- libcups2-dev
|
- libcups2-dev
|
||||||
|
- postgresql
|
||||||
|
- postgresql-contrib
|
||||||
|
|
||||||
|
- name: Create odoo user
|
||||||
|
user:
|
||||||
|
name: odoo
|
||||||
|
comment: Odoo 8 user
|
||||||
|
shell: /bin/bash
|
||||||
|
|
||||||
- name: Install python packages
|
- name: Install python packages
|
||||||
pip:
|
pip:
|
||||||
|
virtualenv: /home/odoo/.virtualenvs/odoo
|
||||||
|
virtualenv_python: python2.7
|
||||||
name:
|
name:
|
||||||
- pandas
|
- pandas
|
||||||
- num2words
|
- num2words
|
||||||
@ -33,9 +43,34 @@
|
|||||||
- psycopg2-binary
|
- psycopg2-binary
|
||||||
- pycups==1.9.74
|
- pycups==1.9.74
|
||||||
|
|
||||||
- name: Create odoo user
|
- name: Prepare folders for Odoo
|
||||||
user:
|
file:
|
||||||
name: odoo
|
path: '{{ item }}'
|
||||||
comment: Odoo 8 user
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
owner: odoo
|
||||||
|
loop:
|
||||||
|
- /var/log/odoo
|
||||||
|
- /opt
|
||||||
|
- /home/odoo/.local/share/Odoo/filestore/Agofer
|
||||||
|
- /home/odoo/src
|
||||||
|
|
||||||
|
- name: Clone current Odoo code
|
||||||
|
git:
|
||||||
|
repo: 'https://gitea.agofer.net/Agofer/odoo_running_code.git'
|
||||||
|
dest: /home/odoo/src/odoo
|
||||||
|
depth: 1
|
||||||
|
|
||||||
|
- name: Download and install wkhtmltopdf
|
||||||
|
apt:
|
||||||
|
deb: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
|
||||||
|
|
||||||
|
- name: Link wkhtmltopdf scripts
|
||||||
|
file:
|
||||||
|
dest: /usr/bin/'{{ item }}'
|
||||||
|
src: /usr/local/bin/'{{ item }}'
|
||||||
|
state: link
|
||||||
|
loop:
|
||||||
|
- wkhtmltopdf
|
||||||
|
- wkhtmltoimage
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user