sadofrazer.odoo_role

Ansible Role: Odoo for Labs or training

CI

An Ansible Role that installs up to three odoo instances on Linux , specially tailored for Linux Distribution

If you need a more flexible and generic role for deploying simultaneous 3 odoo instances for labs or any other needs, check out sadofrazer.ansible_odoo.

Requirements

This roles needs Docker Compose, requires Docker, Python Pip already be installed (you can use geerlingguy.pip to install it).

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

The administrator who realize the deploy

administrator: Frazer

The Odoo Instance variables, uses to create ressources of this specific odoo instance

instance_name: INTEGRAL
port: 8080
db_user: odoo
db_pass: odoo
url_name: frazer-odoo.cloudapps-cm.com
email_address: [email protected] 

odoo parameter which permit user to manage database needs to be true when odoo DB doesn't exist

list_db: True

Use with Ansible and docker Python library if doesn't install

Many users of this role wish to also use Ansible to then build Docker images and manage Docker containers on the server where Docker is installed. In this case, you can easily add in the docker Python library using the geerlingguy.pip role:

- hosts: rpi

  vars:
    pip_package: python3-pip
    pip_install_packages:
      - name: docker

  roles:
    - geerlingguy.pip
    - geerlingguy.docker_arm

Dependencies

None.

Example Playbook

- hosts: client
  become: true
  vars:
    pip_package: python3-pip
  vars_files:
    - files/secrets/credentials.yml
  roles:
    #- geerlingguy.pip
    #- geerlingguy.docker
    - odoo

Author Information

This role was created in 2021 by Frazer SADO, author of Ansible for odoo.

About

Ansible odoo role

Install
ansible-galaxy install sadofrazer.odoo_role
GitHub repository
License
Unknown
Downloads
37
Owner
Devops Engineer