This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-odoo8container/roles/odoo/tasks/main.yml

78 lines
1.5 KiB
YAML

---
- name: Install apt packages
apt:
name:
- build-essential
- nginx
- python-pip
- libpq-dev
- libxml2-dev
- libxslt1-dev
- libsasl2-dev
- libldap2-dev
- libssl-dev
- libjpeg-dev
- libfreetype6-dev
- zlib1g-dev
- zip
- unzip
- libcups2-dev
- postgresql
- postgresql-contrib
- virtualenv
- name: Create odoo user
user:
name: odoo
comment: Odoo 8 user
shell: /bin/bash
- name: Install python packages
pip:
virtualenv: /home/odoo/.virtualenvs/odoo
virtualenv_python: python2.7
name:
- pandas
- num2words
- paramiko
- html2text
- xlsxwriter
- progressbar2
- xlrd
- GitPython==0.3.2
- psycopg2-binary
- pycups==1.9.74
- name: Prepare folders for Odoo
file:
path: '{{ item }}'
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: 'ssh://git@gitea.agofer.net:22001/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