Skip to content
Snippets Groups Projects
user avatar
Renovate Bot authored
a1685d5e
History

Ansible inventories

This repository stores hosts informations and related variables for this specific instance of Odoo.

Requirements

  1. Clone this repo and odoo-provisioning in the same directory
  2. If you want to test this set up locally, install devenv and do:
    cd odoo-vertical-carsharing-inventory
    devenv # this creates the lxc container and sets its hostname
  3. Go to odoo-provisioning directory and install its Ansible dependencies:
    ansible-galaxy install -r requirements.yml
  4. Run ansible-playbook command pointing to the inventory/hosts file of this repository:
    • development local mode
    # install sys admin roles for executing the provision yml (quit -u root if its not the first time)
    ansible-playbook playbooks/sys_admins.yml -i ../odoo-vertical-carsharing-inventory/inventory/hosts --limit=dev -u root
  5. Run ansible-playbook command pointing to the inventory/hosts file of this repository:
    • development local mode
    # tell it to keep it local with limit=dev
    # don't ask for vault pass as no secrets are required for local setups
    ansible-playbook playbooks/provision.yml -i ../odoo-vertical-carsharing-inventory/inventory/hosts --limit=dev
    • production mode
    ansible-playbook playbooks/provision.yml -i ../odoo-vertical-carsharing-inventory/inventory/hosts --ask-vault-pass --limit=prod
  6. In development visit http://odoo-vertical-carsharing.local:8069