Ansible inventories
This repository stores hosts informations and related variables for this specific instance of Odoo.
Requirements
- Clone this repo and odoo-provisioning in the same directory
- 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
- Go to
odoo-provisioning
directory and install its Ansible dependencies:ansible-galaxy install -r requirements.yml
- Run
ansible-playbook
command pointing to theinventory/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
- Run
ansible-playbook
command pointing to theinventory/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
- In development visit http://odoo-vertical-carsharing.local:8069