Install odoo package.
This role requires Ansible 2.2 or higher, and platform requirements are listed in the metadata file.
This role use Molecule to run tests.
Local and Travis tests run tests on Docker by default. See molecule documentation to use other backend.
Currently, tests are done on:
- Debian Jessie
- Ubuntu Xenial
and use:
- Ansible 2.2.x
- Ansible 2.3.x
- Ansible 2.4.x
$ tox
# Defaults vars file for odoo role
# Packages management
odoo_packages: "{{ _odoo_packages }}"
odoo_package_wkhtmltox: "{{ _odoo_package_wkhtmltox | default({}) }}"
odoo_repositories: "{{ _odoo_repositories }}"
odoo_repositories_keys: "{{ _odoo_repositories_keys }}"
odoo_repository_cache_valid_time: 3600
odoo_system_prerequisites: "{{ _odoo_system_prerequisites }}"
# Service management
odoo_service: "{{ _odoo_service }}"
# General
odoo_version: '10.0'
# Configuration
odoo_config_file_name: "{{
odoo_version
| version_compare('10.0', '<')
| ternary('openerp-server.conf', 'odoo.conf') }}"
odoo_config_file_path: "{{ _odoo_config_file_path }}"
odoo_config_options: []
# Packages management
_odoo_packages:
- name: 'odoo'
_odoo_repositories:
- repo: "deb http://nightly.odoo.com/{{ odoo_version }}/nightly/deb/ ./"
_odoo_repositories_keys:
- url: 'https://nightly.odoo.com/odoo.key'
_odoo_system_prerequisites:
- name: 'ca-certificates'
# Service management
_odoo_service:
name: 'odoo'
# Configuration
_odoo_config_file_path: "/etc/odoo/{{ odoo_config_file_name }}"
# Ubuntu distributions specific vars
_odoo_packages:
- name: 'odoo'
- name: 'wkhtmltopdf'
_odoo_package_wkhtmltox:
url: 'https://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb'
None
- hosts: servers
roles:
- { role: infOpen.odoo }
MIT
Alexandre Chaussier (for Infopen company)
- http://www.infopen.pro
- a.chaussier [at] infopen.pro