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-laclosca-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
# 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-laclosca-inventory/inventory/hosts --limit=dev
- production mode
ansible-playbook playbooks/provision.yml -i ../odoo-laclosca-inventory/inventory/hosts --ask-vault-pass --limit=production
- In development visit http://odoo-laclosca.local:8069